[packages/libcnotify] - new
qboosh
qboosh at pld-linux.org
Mon Jan 19 19:56:06 CET 2015
commit cfdd7d64bf766b5fe56a21524cefc417703b768a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jan 19 19:57:37 2015 +0100
- new
libcnotify-system-libs.patch | 40 +++++++++++++++++
libcnotify.spec | 104 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 144 insertions(+)
---
diff --git a/libcnotify.spec b/libcnotify.spec
new file mode 100644
index 0000000..22d0f87
--- /dev/null
+++ b/libcnotify.spec
@@ -0,0 +1,104 @@
+Summary: Library to support cross-platform C notification functions
+Summary(pl.UTF-8): Biblioteka wspierająca wieloplatformowe funkcje powiadomień w C
+Name: libcnotify
+Version: 20150101
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: https://github.com/libyal/libcnotify/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 32e59a8fff5917ee3d62018c5a9f4439
+Patch0: %{name}-system-libs.patch
+URL: https://github.com/libyal/libcnotify/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1.6
+BuildRequires: gettext-tools >= 0.18.1
+BuildRequires: libcerror-devel >= 20120425
+BuildRequires: libcstring-devel >= 20120425
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
+Requires: libcerror >= 20120425
+Requires: libcstring >= 20120425
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libcnotify is a library to support cross-platform C notification
+functions.
+
+%description -l pl.UTF-8
+libcnotify to biblioteka wspierająca wieloplatformowe funkcje
+powiadomień w C.
+
+%package devel
+Summary: Header files for libcnotify library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcnotify
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libcerror-devel >= 20120425
+Requires: libcstring-devel >= 20120425
+
+%description devel
+Header files for libcnotify library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libcnotify.
+
+%package static
+Summary: Static libcnotify library
+Summary(pl.UTF-8): Statyczna biblioteka libcnotify
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libcnotify library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libcnotify.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__gettextize}
+%{__sed} -i -e 's/ po\/Makefile.in//' configure.ac
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libcnotify.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{_libdir}/libcnotify.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcnotify.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcnotify.so
+%{_includedir}/libcnotify
+%{_includedir}/libcnotify.h
+%{_pkgconfigdir}/libcnotify.pc
+%{_mandir}/man3/libcnotify.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcnotify.a
diff --git a/libcnotify-system-libs.patch b/libcnotify-system-libs.patch
new file mode 100644
index 0000000..3d8584c
--- /dev/null
+++ b/libcnotify-system-libs.patch
@@ -0,0 +1,40 @@
+--- libcnotify-20150101/configure.ac.orig 2015-01-19 17:20:39.466864463 +0100
++++ libcnotify-20150101/configure.ac 2015-01-19 17:46:53.676798399 +0100
+@@ -128,8 +128,6 @@ dnl Have configure make the Makefiles
+ AC_CONFIG_FILES([Makefile])
+ AC_CONFIG_FILES([include/Makefile])
+ AC_CONFIG_FILES([common/Makefile])
+-AC_CONFIG_FILES([libcstring/Makefile])
+-AC_CONFIG_FILES([libcerror/Makefile])
+ AC_CONFIG_FILES([libcnotify/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libcnotify-20150101/Makefile.am.orig 2015-01-19 17:20:39.190197808 +0100
++++ libcnotify-20150101/Makefile.am 2015-01-19 17:47:11.440130987 +0100
+@@ -3,8 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcstring \
+- libcerror \
+ libcnotify \
+ po \
+ manuals \
+@@ -55,8 +53,6 @@ lib: library
+
+ library:
+ cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libcstring && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS)
+ cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS)
+ cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)
+
+@@ -73,8 +69,6 @@ distclean: clean
+ done && test -z "$$fail"
+
+ splint:
+- (cd $(srcdir)/libcstring && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcerror && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/libcnotify && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/po && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/tests && $(MAKE) splint $(AM_MAKEFLAGS))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libcnotify.git/commitdiff/cfdd7d64bf766b5fe56a21524cefc417703b768a
More information about the pld-cvs-commit
mailing list