- from PLD, updated to 0.1.10 master
authorMarcin Krol <hawk@tld-linux.org>
Mon, 27 Apr 2015 06:35:43 +0000 (06:35 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 27 Apr 2015 06:35:43 +0000 (06:35 +0000)
libestr.spec [new file with mode: 0644]

diff --git a/libestr.spec b/libestr.spec
new file mode 100644 (file)
index 0000000..0584135
--- /dev/null
@@ -0,0 +1,93 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static libraries
+#
+Summary:       Some essential string manipulation functions
+Summary(pl.UTF-8):     Kilka podstawowych funkcji do manipulacji łańcuchami
+Name:          libestr
+Version:       0.1.10
+Release:       1
+License:       LGPL v2.1+
+Group:         Libraries
+Source0:       http://libestr.adiscon.com/files/download/%{name}-%{version}.tar.gz
+# Source0-md5: f4c9165a23587e77f7efe65d676d5e8e
+URL:           http://libestr.adiscon.com/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libestr is a library that contains some essential string manipulation
+functions.
+
+%description -l pl.UTF-8
+libestr jest biblioteką zawierającą kilka podstawowych funkcji do
+manipulacji łańcuchami.
+
+%package devel
+Summary:       Header files for libestr library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libestr
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for libestr library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libestr.
+
+%package static
+Summary:       Static libestr library
+Summary(pl.UTF-8):     Statyczna biblioteka libestr
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libestr library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libestr.
+
+%prep
+%setup -q
+
+%build
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --disable-silent-rules \
+       %{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog
+%attr(755,root,root) %{_libdir}/libestr.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libestr.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libestr.so
+%{_libdir}/libestr.la
+%{_includedir}/libestr.h
+%{_pkgconfigdir}/libestr.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libestr.a
+%endif