[packages/unibilium] new, version 1.2.0

glen glen at pld-linux.org
Tue Sep 13 23:05:55 CEST 2016


commit d59490c872c7d8a7627854d9846d726f3f7c0a95
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Sep 14 00:05:30 2016 +0300

    new, version 1.2.0
    
    based on fedora package, ab2e2ad

 unibilium.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)
---
diff --git a/unibilium.spec b/unibilium.spec
new file mode 100644
index 0000000..c28a7ba
--- /dev/null
+++ b/unibilium.spec
@@ -0,0 +1,78 @@
+#
+# Conditional build:
+%bcond_without	tests	# build without tests
+%bcond_without	doc		# build doc
+
+Summary:	Terminfo parsing library
+Name:		unibilium
+Version:	1.2.0
+Release:	1
+License:	LGPLv3+
+Group:		Libraries
+Source0:	https://github.com/mauke/unibilium/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	9b1c97839a880a373da6c097443b43c4
+URL:		https://github.com/mauke/unibilium
+BuildRequires:	gcc
+BuildRequires:	libtool
+%if %{with doc}
+BuildRequires:	/usr/bin/pod2man
+%endif
+%if %{with tests}
+BuildRequires:	/usr/bin/prove
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Unibilium is a very basic terminfo library. It doesn't depend on
+curses or any other library. It also doesn't use global variables, so
+it should be thread-safe.
+
+%package devel
+Summary:	Development files needed for %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Development files needed for %{name}.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+	CC="%{__cc}" \
+	PREFIX=%{_prefix} \
+	LIBDIR=%{_libdir}
+
+%if %{with tests}
+%{__make} test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	PREFIX=%{_prefix} \
+	LIBDIR=%{_libdir} \
+	DESTDIR=$RPM_BUILD_ROOT
+
+rm -vf $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%attr(755,root,root) %{_libdir}/libunibilium.so.*.*.*
+%ghost %{_libdir}/libunibilium.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libunibilium.so
+%{_pkgconfigdir}/unibilium.pc
+%{_includedir}/%{name}.h
+%{_mandir}/man3/unibi_*.3*
+%{_mandir}/man3/unibilium.h.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/unibilium.git/commitdiff/d59490c872c7d8a7627854d9846d726f3f7c0a95



More information about the pld-cvs-commit mailing list