[packages/owncloudclient] - mniej pakietow
blues
blues at pld-linux.org
Tue Apr 12 13:01:42 CEST 2016
commit 931f5ef66d01a28e8e26ef1c4a5cb2425064dff2
Author: Paweł Gołaszewski <blues at pld-linux.org>
Date: Tue Apr 12 12:59:00 2016 +0200
- mniej pakietow
owncloudclient.spec | 157 ++++++----------------------------------------------
1 file changed, 18 insertions(+), 139 deletions(-)
---
diff --git a/owncloudclient.spec b/owncloudclient.spec
index 665b49d..9089331 100644
--- a/owncloudclient.spec
+++ b/owncloudclient.spec
@@ -43,63 +43,6 @@ controlled architecture. You can easily extend ownCloud with plug-ins
from the community, or that you build yourself to meet the
requirements of your infrastructure and business.
-%package -n %{name}-doc
-Summary: Documentation for ownCloud
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-Obsoletes: opt-owncloud-client-doc
-
-%description -n %{name}-doc
-Documentation about the ownCloud desktop application.
-
-%package -n %{name}-l10n
-Summary: Localization for ownCloud
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-Obsoletes: opt-owncloud-client-l10n
-
-%description -n %{name}-l10n
-Localization files for the ownCloud desktop application.
-
-%package -n libowncloudsync0
-Summary: The ownCloud sync library
-Group: Development/Libraries
-
-%description -n libowncloudsync0
-The ownCloud sync library.
-
-%package -n libowncloudsync-devel
-Summary: Development files for the ownCloud sync library
-Group: Development/Libraries
-Requires: libowncloudsync0 = %{version}
-
-%description -n libowncloudsync-devel
-Development files for the ownCloud sync library.
-
-%package -n %{name}-nautilus
-Summary: Nautilus overlay icons
-Group: Productivity/Networking/Other
-Requires: nautilus
-Requires: nautilus-python
-Requires: python-nautilus
-Requires: %{name} = %{version}-%{release}
-
-%description -n %{name}-nautilus
-This package provides overlay icons to visualize the sync state in the
-nautilus file manager.
-
-%package -n %{name}-nemo
-Summary: Nemo overlay icons
-Group: Productivity/Networking/Other
-Requires: nemo
-Requires: nemo-python
-Requires: python-nemo
-Requires: %{name} = %{version}-%{release}
-
-%description -n %{name}-nemo
-This package provides overlay icons to visualize the sync state in the
-nemo file manager.
-
%prep
%setup -q
# autostart_use_wrapper.diff
@@ -128,111 +71,47 @@ fi
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
- install -d ${RPM_BUILD_ROOT}%{_docdir}/%{name}
- mv ${RPM_BUILD_ROOT}%{_docdir}/client/* ${RPM_BUILD_ROOT}%{_docdir}/%{name}
- rmdir ${RPM_BUILD_ROOT}%{_docdir}/client
- rm ${RPM_BUILD_ROOT}%{_docdir}/%{name}/html/unthemed/.buildinfo
- mv ${RPM_BUILD_ROOT}%{_docdir}/%{name}/html/unthemed/* ${RPM_BUILD_ROOT}%{_docdir}/%{name}/html/
- rmdir ${RPM_BUILD_ROOT}%{_docdir}/%{name}/html/unthemed
-
- install -d ${RPM_BUILD_ROOT}%{_mandir}man1
- mv ${RPM_BUILD_ROOT}%{_mandir}/man1/{owncloud.1,owncloud.1}
- mv ${RPM_BUILD_ROOT}%{_mandir}/man1/{owncloudcmd.1,owncloudcmd.1}
-
-%define extdir ${RPM_BUILD_ROOT}%{_datadir}/nautilus-python/extensions
-test -f %{extdir}/ownCloud.py && mv %{extdir}/ownCloud.py %{extdir}/owncloud.py || true
-test -f %{extdir}/ownCloud.pyo && mv %{extdir}/ownCloud.pyo %{extdir}/owncloud.pyo || true
-test -f %{extdir}/ownCloud.pyc && mv %{extdir}/ownCloud.pyc %{extdir}/owncloud.pyc || true
+mv ${RPM_BUILD_ROOT}%{_docdir}/html ${RPM_BUILD_ROOT}%{_docdir}/%{name}
+mv ${RPM_BUILD_ROOT}%{_docdir}/latex ${RPM_BUILD_ROOT}%{_docdir}/%{name}
+rm ${RPM_BUILD_ROOT}%{_docdir}/%{name}/unthemed/.buildinfo
-install -d ${RPM_BUILD_ROOT}/%{optdir}/bin
-mv ${RPM_BUILD_ROOT}/%{_bindir}/owncloud* ${RPM_BUILD_ROOT}/%{optdir}/bin/
-
-cp -p %{SOURCE1} ${RPM_BUILD_ROOT}%{_bindir}/owncloud
-cp -p %{SOURCE2} ${RPM_BUILD_ROOT}%{_bindir}/owncloudcmd
-
-%check
-## use exit 0 instead of exit 1 to turn this into warnings:
-if [ "%{name}" != "testpilotcloud-client" ]; then
- if [ "%{prerelease}" == "" ]; then
- expr match '%{distribution}' '.*:community:\(testing\|nightly\)' && { echo "Error: Need a prerelease here, not %{version}"; exit 1; }
- else
- expr match '%{distribution}' '.*:community:desktop' && { echo "Error: Must not have a prerelease here, not %{version}"; exit 1; }
- fi
-fi
+#%find_lang owncloud
%post
/bin/%update_icon_cache_post hicolor &>/dev/null || :
+/sbin/ldconfig
%postun
if [ $1 -eq 0 ] ; then
/bin/%update_icon_cache_post hicolor &>/dev/null
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
-
-%posttrans
-%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-
-%post -n libowncloudsync0
-/sbin/ldconfig
-
-%postun -n libowncloudsync0
/sbin/ldconfig
%files
+#-n %{name}.lang
%defattr(644,root,root,755)
+%doc README.md COPYING
+%doc %{_docdir}/%{name}
%attr(755,root,root) %{_bindir}/owncloud
%attr(755,root,root) %{_bindir}/owncloudcmd
-%{optdir}/bin/owncloud
-%{optdir}/bin/owncloudcmd
-
-%{_desktopdir}/owncloud.desktop
-%{_iconsdir}/hicolor
-%{_mandir}/man1/owncloud*
-
-%{_iconsdir}/hicolor
%{_desktopdir}/owncloud.desktop
-%attr(755,root,root) %{_bindir}/owncloud
-%attr(755,root,root) %{_bindir}/owncloudcmd
-%config %{_sysconfdir}/ownCloud
-%dir %{_sysconfdir}
-
-%files -n %{name}-doc
-%defattr(644,root,root,755)
-%doc README.md COPYING
-%doc %{_docdir}/%{name}
-
-%files -n %{name}-l10n
-%defattr(644,root,root,755)
-%{_datadir}/owncloud
-
-%files -n libowncloudsync0
-%defattr(644,root,root,755)
+%{_iconsdir}/*/*/apps/*.png
+#%{_iconsdir}/hicolor
+#%config %{_sysconfdir}/ownCloud
+#%{_datadir}/owncloud
%{_libdir}/libowncloudsync.so.*
%{_libdir}/owncloud/libocsync.so.*
-%dir %{_libdir}/owncloud
-
-%files -n libowncloudsync-devel
-%defattr(644,root,root,755)
-%{_libdir}/libowncloudsync.so
-%{_libdir}/owncloud/libocsync.so
-%{_includedir}/owncloudsync/
-
-%files -n %{name}-nautilus
-%defattr(644,root,root,755)
-# Fedora also has *.pyc and *.pyo files here.
+#%dir %{_libdir}/owncloud
+#%{_libdir}/libowncloudsync.so
+#%{_libdir}/owncloud/libocsync.so
+#%{_includedir}/owncloudsync/
%{_datadir}/nautilus-python/extensions/syncstate.py*
-%dir %{_datadir}/nautilus-python
-%dir %{_datadir}/nautilus-python/extensions/
-
-%files -n %{name}-nemo
-%defattr(644,root,root,755)
-# Fedora also has *.pyc and *.pyo files here.
%{_datadir}/nemo-python/extensions/syncstate.py*
-%dir %{_datadir}/nemo-python
-%dir %{_datadir}/nemo-python/extensions/
+%{_mandir}/man1/owncloud*
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/owncloudclient.git/commitdiff/c1b38b2d552f957f7521c0ae408eac3886e50382
More information about the pld-cvs-commit
mailing list