[packages/libopensync-plugin-file] - updated cmake macro, don't package generic INSTALL
qboosh
qboosh at pld-linux.org
Sun Sep 21 09:34:07 CEST 2025
commit 868e446b05fdd1d6a14f5453582f90c4d9540101
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 21 09:37:05 2025 +0200
- updated cmake macro, don't package generic INSTALL
libopensync-plugin-file.spec | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/libopensync-plugin-file.spec b/libopensync-plugin-file.spec
index 5fc3c87..7875fe9 100644
--- a/libopensync-plugin-file.spec
+++ b/libopensync-plugin-file.spec
@@ -5,15 +5,18 @@ Version: 0.39
Release: 1
License: LGPL v2.1
Group: Libraries
-Source0: http://www.opensync.org/download/releases/%{version}/%{name}-%{version}.tar.bz2
+# originally http://www.opensync.org/download/releases/%{version}/%{name}-%{version}.tar.bz2
+Source0: %{name}-%{version}.tar.bz2
# Source0-md5: 4e4aeb1012b504c005c7f235b1bd0e60
-URL: http://www.opensync.org/
-BuildRequires: cmake
+#URL: http://www.opensync.org/
+BuildRequires: cmake >= 2.4.4
BuildRequires: fam-devel
BuildRequires: glib2-devel >= 2.0
BuildRequires: libopensync-devel >= 1:%{version}
BuildRequires: libxml2-devel >= 2.0
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.605
+Requires: libopensync >= 1:%{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -39,14 +42,9 @@ szkieletu OpenSync.
%setup -q
%build
-mkdir build
+install -d build
cd build
-%cmake .. \
- -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
- -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-%if "%{_lib}" != "lib"
- -DLIB_SUFFIX=64
-%endif
+%cmake ..
%{__make}
@@ -56,14 +54,12 @@ rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{_libdir}/opensync/plugins/*.la
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS INSTALL
+%doc AUTHORS
%attr(755,root,root) %{_libdir}/libopensync1/plugins/file-sync.so
%attr(755,root,root) %{_libdir}/libopensync1/formats/file.so
%attr(755,root,root) %{_libdir}/libopensync1/formats/plain.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libopensync-plugin-file.git/commitdiff/868e446b05fdd1d6a14f5453582f90c4d9540101
More information about the pld-cvs-commit
mailing list