Merged from SVN repos fedora and centos
This commit is contained in:
354
fedora/SPECS/owncloud-files.spec
Normal file
354
fedora/SPECS/owncloud-files.spec
Normal file
@@ -0,0 +1,354 @@
|
||||
#
|
||||
# spec file for package owncloud-files
|
||||
#
|
||||
# Copyright (c) 2012-2016 ownCloud, Inc.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes, issues or comments via http://github.com/owncloud/
|
||||
#
|
||||
|
||||
# name used as apache alias and topdir for php code.
|
||||
%define owncloud owncloud
|
||||
|
||||
# CAUTION: keep in sync with debian.rules
|
||||
%define apache_serverroot /var/www/html
|
||||
%define apache_confdir /etc/httpd/conf.d
|
||||
%define oc_user apache
|
||||
%define oc_group apache
|
||||
|
||||
# CAUTION: keep in sync with debian.rules
|
||||
%define oc_dir %{apache_serverroot}/%{owncloud}
|
||||
%define oc_config_dir %{oc_dir}/config
|
||||
%define oc_data_dir %{oc_dir}/data
|
||||
%define oc_data_pdir %{oc_dir}
|
||||
|
||||
Name: owncloud-files
|
||||
|
||||
# Downloaded from http://download.owncloud.com/internal/8.2.1/owncloud-complete-8.2.1.tar.bz2
|
||||
# Downloaded from http://download.owncloud.com/internal/8.2.2RC1/owncloud-complete-8.2.2RC1.tar.bz2
|
||||
|
||||
## define prerelease % nil, if this is *not* a prerelease.
|
||||
%define prerelease %nil
|
||||
%define base_version 9.0.0
|
||||
|
||||
%if 0%{?centos_version} == 600 || 0%{?fedora_version} || "%{prerelease}" == ""
|
||||
# For beta and rc versions we use the ~ notation, as documented in
|
||||
# http://en.opensuse.org/openSUSE:Package_naming_guidelines
|
||||
Version: %{base_version}
|
||||
%if "%{prerelease}" == ""
|
||||
Release: 1.1
|
||||
%else
|
||||
Release: 0.1.1.%{prerelease}
|
||||
%endif
|
||||
%else
|
||||
Version: %{base_version}~%{prerelease}
|
||||
Release: 1.1
|
||||
%endif
|
||||
|
||||
# http://owncloud:owncloud42@download.owncloud.com/internal/8.2.2/owncloud-complete-8.2.2.tar.bz2
|
||||
Source0: http://download.owncloud.org/community/owncloud-9.0.0.tar.bz2
|
||||
Source1: apache_conf_default
|
||||
Source2: README
|
||||
Source4: README.packaging
|
||||
Source5: disable-updatechecker.config.php
|
||||
Url: http://www.owncloud.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Summary: The ownCloud Server - Private file sync and share server
|
||||
License: AGPL-3.0 and MIT
|
||||
Group: Productivity/Networking/Web/Utilities
|
||||
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
Recommends: owncloud-deps
|
||||
%endif
|
||||
|
||||
%if "%{?_repository}" == "openSUSE_Tumbleweed"
|
||||
# disable rpmlint for Tumbleweed while it is broken.
|
||||
# It has random errors like these:
|
||||
# IOError: [Errno 2] No such file or directory: '/tmp/rpmlint.owncloud-ee-base-8.2.2-1.1.noarch.rpm.zFc3ft/usr/share/owncloud/apps/files_external/tests/env/stop-smb-silvershell.sh'
|
||||
|
||||
BuildRequires: -rpmlint -rpmlint-mini
|
||||
%endif
|
||||
|
||||
Obsoletes: owncloud < 8.99.99
|
||||
Obsoletes: owncloud-server < 8.99.99
|
||||
Obsoletes: owncloud-config-apache < 8.99.99
|
||||
Obsoletes: owncloud < 8.99.99
|
||||
|
||||
%description
|
||||
ownCloud Server provides you a private file sync and share
|
||||
cloud. Host this server to easily sync business or private documents
|
||||
across all your devices, and share those documents with other users of
|
||||
your ownCloud server on their devices.
|
||||
|
||||
This package installs as follows:
|
||||
oc_dir: %{oc_dir}
|
||||
oc_data_dir: %{oc_data_dir}
|
||||
oc_config_dir: %{oc_config_dir}
|
||||
|
||||
ownCloud - Your Cloud, Your Data, Your Way! www.owncloud.org
|
||||
|
||||
#####################################################
|
||||
|
||||
%prep
|
||||
%setup -q -n owncloud
|
||||
cp %{SOURCE1} .
|
||||
cp %{SOURCE2} .
|
||||
cp %{SOURCE4} .
|
||||
#%%patch0 -p0
|
||||
|
||||
## remove .bower.json .bowerrc .gitattributes .gitmodules
|
||||
# find . -name .bower\* -print -o -name .git\* -print | xargs -r rm -rf
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
# no server side java code contained, alarm is false
|
||||
export NO_BRP_CHECK_BYTECODE_VERSION=true
|
||||
idir=$RPM_BUILD_ROOT/%{oc_dir}
|
||||
mkdir -p $RPM_BUILD_ROOT/%{oc_dir}
|
||||
mkdir -p $RPM_BUILD_ROOT/%{oc_dir}/etc
|
||||
mkdir -p $RPM_BUILD_ROOT/%{oc_data_dir}
|
||||
mkdir -p $RPM_BUILD_ROOT/%{oc_config_dir}
|
||||
mkdir -p $RPM_BUILD_ROOT/%{oc_dir}/core/skeleton
|
||||
|
||||
cp -aRf .htaccess .user.ini * $idir
|
||||
rm -f $idir/debian.*{install,rules,control}
|
||||
rm -f $idir/README{,.SELinux,.packaging}
|
||||
sed -e 's@/var/www/owncloud@%{oc_dir}/owncloud@' < $idir/apache_conf_default > owncloud-config-apache.conf.default
|
||||
rm -f $idir/apache_conf_default
|
||||
|
||||
## https://github.com/owncloud/core/issues/22257
|
||||
# disable-updatechecker.config.php
|
||||
cp %{SOURCE5} $idir/config/
|
||||
|
||||
## can we do proper groups user during install? No, we are in a build enironment, non-root user.
|
||||
# find $idir/apps $idir/data $idir/config -print0 | xargs -0 chown % {oc_user}:% {oc_group}
|
||||
# find $idir/apps $idir/data $idir/config -type d -print0 | xargs -0 chmod 0775
|
||||
# find $idir/apps $idir/data $idir/config -type f -print0 | xargs -0 chmod 0664
|
||||
|
||||
|
||||
%if 0%{?suse_version}
|
||||
# link duplicate doc files
|
||||
%fdupes -s $RPM_BUILD_ROOT/%{oc_dir}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf "$RPM_BUILD_ROOT"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README README.packaging owncloud-config-apache.conf.default
|
||||
|
||||
# is there any security to be gained here? Easier to chown everthing to % {oc_user}
|
||||
%defattr(0644,root,%{oc_group},0755)
|
||||
%attr(0755,%{oc_user},%{oc_group}) %{oc_dir}/occ
|
||||
%attr(0775,%{oc_user},%{oc_group}) %{oc_dir}/apps
|
||||
%attr(0775,%{oc_user},%{oc_group}) %{oc_data_dir}
|
||||
%attr(0775,%{oc_user},%{oc_group}) %{oc_config_dir}
|
||||
# BUMMER: exclude excludes globally, not just below. It cannot be used to avoid duplicate warnings?
|
||||
# FIXME: only cure against the duplicate warnings is a -f file-list
|
||||
%{oc_dir}
|
||||
|
||||
%changelog
|
||||
* Tue Mar 8 2016 jw@owncloud.com
|
||||
- update to 9.0.0
|
||||
* Mon Mar 7 2016 jw@owncloud.com
|
||||
- update to 9.0.0~RC3
|
||||
* Sat Mar 5 2016 jw@owncloud.com
|
||||
- update to 9.0.0~RC2
|
||||
* Thu Mar 3 2016 jw@owncloud.com
|
||||
- retain dotfiles https://github.com/owncloud/core/issues/22803
|
||||
* Thu Mar 3 2016 jw@owncloud.com
|
||||
- fix https://github.com/owncloud/core/issues/22804
|
||||
* Wed Mar 2 2016 jw@owncloud.com
|
||||
- update to 9.0.0~RC1
|
||||
* Wed Feb 24 2016 jw@owncloud.com
|
||||
- fixed default file ownership in RPM to be apache.
|
||||
CentOS_7 just failed with unwritable config folder again.
|
||||
* Wed Feb 24 2016 jw@owncloud.com
|
||||
- obsoletes in spec changed to < 8.99.99
|
||||
* Fri Feb 19 2016 jw@owncloud.com
|
||||
- survive integrity checks. see ee:9.0:testing for details
|
||||
* Fri Feb 19 2016 jw@owncloud.com
|
||||
- update to 9.0.0 beta2
|
||||
* Tue Feb 16 2016 jw@owncloud.com
|
||||
- apps, data, config directories had no x-bits
|
||||
* Fri Feb 12 2016 jw@owncloud.com
|
||||
- added disable-updatechecker.config.php -- this is the correct solution for
|
||||
https://github.com/owncloud/core/issues/22257
|
||||
* Fri Feb 12 2016 jw@owncloud.com
|
||||
- help https://github.com/owncloud/core/issues/22257
|
||||
* Thu Feb 11 2016 jw@owncloud.com
|
||||
- survive bad broken rpmlint on openSUSE_Tumbleweed
|
||||
* Thu Feb 11 2016 jw@owncloud.com
|
||||
- initial 9.0 setup: owncloud-enterprise-files
|
||||
- must not include .gitkeep or .gitignore files.
|
||||
* Thu Feb 4 2016 jw@owncloud.com
|
||||
- made file system layout compatible with tar/zip installations,
|
||||
preparing for owncloud-deps sub-package.
|
||||
* Tue Dec 22 2015 jw@owncloud.com
|
||||
- Updated to 8.2.2
|
||||
* Wed Dec 16 2015 jw@owncloud.com
|
||||
- Updated to 8.2.2~RC1
|
||||
* Fri Dec 4 2015 jw@owncloud.com
|
||||
- typo in etc/owncloud-config-apache.conf.default fixed.
|
||||
Thanks JP.
|
||||
* Thu Dec 3 2015 jw@owncloud.com
|
||||
- New package: owncloud-ee-base without dependencies.
|
||||
- Replaces, Conflicts, Obsoletes all other owncloud-* packages << 8.2.2
|
||||
- improved apache_config_default
|
||||
- dropped htaccess re-added.
|
||||
* Tue Nov 17 2015 jenkins@owncloud.com
|
||||
- Update to version 8.2.1
|
||||
* Tue Nov 17 2015 jenkins@owncloud.com
|
||||
- Update to version 8.2.1~RC4
|
||||
* Fri Nov 13 2015 jw@owncloud.com
|
||||
- Update to version 8.2.1~RC3
|
||||
- added app-password_policy subpackage
|
||||
* Wed Nov 11 2015 jenkins@owncloud.com
|
||||
- Update to version 8.2.1~RC2
|
||||
* Wed Nov 4 2015 jw@owncloud.com
|
||||
- Update to version 8.2.1~RC1
|
||||
* Fri Sep 18 2015 jw@owncloud.com
|
||||
- Update to version 8.2~beta1
|
||||
* Mon Sep 14 2015 jw@owncloud.com
|
||||
- Require owncloud-server, instead of a virtual owncloud-enterprise-server.
|
||||
* Fri Sep 11 2015 jw@owncloud.com
|
||||
- Update to version 8.1.3
|
||||
* Fri Sep 4 2015 jw@owncloud.com
|
||||
- Updated ownCloudServerAdminManual.pdf
|
||||
* Wed Sep 2 2015 jw@owncloud.com
|
||||
- Update to version 8.1.2
|
||||
* Sun Aug 30 2015 jw@owncloud.com
|
||||
- Update to version 8.1.2~RC1
|
||||
* Fri Aug 14 2015 jw@owncloud.com
|
||||
- softwarecollections rh-scl have renamed their packages: rh-php56-php
|
||||
* Sat Aug 8 2015 jw@owncloud.com
|
||||
- Update to version 8.1.1
|
||||
* Sat Aug 8 2015 jw@owncloud.com
|
||||
- RPM: Do not hard require mysql locally. That is not realistic for enterprise.
|
||||
DEB does not have that requirement anyway.
|
||||
- Using %%{ocphp} to select the correct php version.
|
||||
- fixed https://github.com/owncloud/core/issues/16132
|
||||
- Updated ownCloudServerAdminManual.pdf
|
||||
* Mon Aug 3 2015 jw@owncloud.com
|
||||
- Update to version 8.1.1~RC1
|
||||
* Fri Jul 24 2015 jw@owncloud.com
|
||||
- Update to version 8.1.1~beta1
|
||||
* Mon Jul 13 2015 jw@owncloud.com
|
||||
- Updated ownCloudServerAdminManual.pdf
|
||||
* Fri Jul 3 2015 jw@owncloud.com
|
||||
- Update to version 8.1.0
|
||||
* Wed Jul 1 2015 jw@owncloud.com
|
||||
- Version number patched back to 3 digits 8.1.0~RC2
|
||||
* Wed Jul 1 2015 jw@ownCloud.com
|
||||
- Update to version 8.1~RC2
|
||||
* Tue Jun 2 2015 jw@owncloud.com
|
||||
- fixed https://github.com/owncloud/core/issues/16132
|
||||
* Tue May 19 2015 jw@owncloud.com
|
||||
- Updated to 8.1.0~Beta2
|
||||
* Mon May 11 2015 jw@owncloud.com
|
||||
- https://github.com/owncloud/core/issues/16204
|
||||
Fix install on CentOS_6@SCL-PHP54
|
||||
* Fri May 8 2015 jw@owncloud.com
|
||||
- Updated to 8.1.0~Beta1
|
||||
* Thu Apr 23 2015 jw@owncloud.com
|
||||
- Updated to 8.1.0~Alpha2
|
||||
- Added app: files_drop
|
||||
- Removed app: search_elastic
|
||||
* Thu Apr 16 2015 jw@owncloud.com
|
||||
- Updated to 8.1.0~Alpha1
|
||||
- Added app: search_elastic
|
||||
* Thu Apr 16 2015 jw@owncloud.com
|
||||
- Update to 8.0.3 RC2
|
||||
* Sat Mar 28 2015 jw@owncloud.com
|
||||
- Release "8.0.3" April 6. 2015
|
||||
- Fix several Constrain Violation Exceptions
|
||||
- Fix misleading Maintenance mode message
|
||||
- Timezone fixes for countries with .05 and 0.75 offsets
|
||||
- Fix usage of default share folder location
|
||||
- Improved MSSQL compatibility
|
||||
- Reenable trashbin after failed rename
|
||||
- Fix disabling of APCu
|
||||
- Do not show update notification on mobile
|
||||
- Fix "Only variables should be passed by reference" error log spam
|
||||
- Add timeout to curl
|
||||
- Makes repair errors and warnings visible for the user when
|
||||
- Upgrading on the command line or in the web UI
|
||||
- Cron shall not operate in case we are in maintenance mode
|
||||
- Disable the cache updater when doing the encryption migration
|
||||
- Fix "Error while updating app" error
|
||||
- Internal Server Error after attempting to do "occ files:scan"
|
||||
* Mon Mar 16 2015 jw@owncloud.com
|
||||
- update to 8.0.2
|
||||
- https://github.com/owncloud/enterprise/issues/560
|
||||
* Preinstall check for duplicate installations done.
|
||||
* Migration instructions in README.symlink done.
|
||||
* adopted the DEB upgrade detection algorithm for RPM.
|
||||
- https://github.com/owncloud/enterprise/issues/573
|
||||
* fixed also for debian: virtual Provides did not work with versioned Depends.
|
||||
* Thu Mar 5 2015 jw@owncloud.com
|
||||
- removed ownCloudUserManual.pdf here to avoid a file conflict with owncloud-server
|
||||
* Thu Mar 5 2015 jw@owncloud.com
|
||||
- updated to 8.0.1 Mar 4, 22:41h
|
||||
* Wed Mar 4 2015 jw@owncloud.com
|
||||
- Updated to todays rebuild of 8.0.1 tar ball.
|
||||
Added latest Server and User PDFs.
|
||||
* Wed Mar 4 2015 jw@owncloud.com
|
||||
* Fixing https://github.com/owncloud/enterprise/issues/552
|
||||
better. Do not Require clamav for CentOS and friends.
|
||||
Recommend for openSUSE. Describe the dependency of files_antivirus in the README.
|
||||
* Tue Mar 3 2015 jw@owncloud.com
|
||||
- fixed https://github.com/owncloud/enterprise/issues/552
|
||||
clamav was the last one missing
|
||||
- fixed https://github.com/owncloud/enterprise/issues/549
|
||||
multiple missing dependencies added. We are now more on the side that build or
|
||||
install fails instead of manual post processing.
|
||||
* Mon Mar 2 2015 jw@owncloud.com
|
||||
- updated firewall app.
|
||||
* Mon Mar 2 2015 jw@owncloud.com
|
||||
- Match permissions on owncloud, data, themes, config, apps folders
|
||||
(they exist in both, owncloud and owncloud-enterprise* packages.)
|
||||
CentOS-7 is extremely picky: User, group, and modes must match exactly.
|
||||
* Mon Mar 2 2015 jw@owncloud.com
|
||||
- update to 8.0.1
|
||||
ownCloud app files_drop no longer included.
|
||||
ownCloud app search_elastic dropped.
|
||||
* Wed Feb 18 2015 jw@owncloud.com
|
||||
- enterprise version need not be exaclty the same as server version
|
||||
* Tue Feb 17 2015 jw@owncloud.com
|
||||
- updated to 8.0.0 RC2
|
||||
* Sat Feb 7 2015 jw@owncloud.com
|
||||
- Require owncloud-server-core instead of owncloud-server
|
||||
* Mon Feb 2 2015 jw@owncloud.com
|
||||
- updated to 8.0.0 RC1
|
||||
* Fri Jan 30 2015 jw@owncloud.com
|
||||
- make apps directory writable by oc_user
|
||||
* Thu Jan 29 2015 jw@owncloud.com
|
||||
- added all the RHEL_6_PHP5* build targets.
|
||||
* Thu Jan 29 2015 jw@owncloud.com
|
||||
- owncloud-enterprise-theme must not be build dependency, but must be
|
||||
a runtime dependency for owncloud-enterprise. Exception to the rule!
|
||||
- generated deb metafiles for all subpackages with
|
||||
obs_check_deb_spec.sh
|
||||
* Thu Jan 29 2015 jw@owncloud.com
|
||||
- first completed specfile.
|
||||
- fixed garbage filter .bower and .git .
|
||||
- opensuse needs dir entries in %%files for top and top/apps,
|
||||
all others dont.
|
||||
* Wed Jan 28 2015 jw@owncloud.com
|
||||
- adapted isv:ownCloud:community:8.0/owncloud/owncloud.spec
|
||||
to become owncloud-enterprise.spec here.
|
||||
- removed all unnecessary packages, that are now subpackages here.
|
||||
* Thu Jan 8 2015 jw@owncloud.com
|
||||
- initial draught for ownCloud 8
|
||||
Reference in New Issue
Block a user