[packages/libserialport] - initial
arekm
arekm at pld-linux.org
Wed Dec 18 15:54:50 CET 2013
commit 187ae5d28aa450d827bee53b3fdcc078fdc298a6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Dec 18 15:54:39 2013 +0100
- initial
libserialport.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
---
diff --git a/libserialport.spec b/libserialport.spec
new file mode 100644
index 0000000..7a9a211
--- /dev/null
+++ b/libserialport.spec
@@ -0,0 +1,71 @@
+Summary: Cross-platform serial port access library
+Name: libserialport
+Version: 0.1
+Release: 1
+License: GPL v3+
+Group: Libraries
+URL: http://www.sigrok.org/
+Source0: http://sigrok.org/download/source/libserialport/%{name}-%{version}.tar.gz
+# Source0-md5: 37b226331432a571f247b6406af606db
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: doxygen
+BuildRequires: pkgconfig >= 1:0.22
+BuildRequires: udev-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Minimal, cross-platform shared library written in C that is intended
+to take care of the OS-specific details when writing software that
+uses serial ports.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoheader}
+%{__automake}
+%{__autoconf}
+%configure \
+ --disable-static \
+ --disable-silent-rules \
+ --enable-all-drivers \
+
+%{__make}
+
+doxygen Doxyfile
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README NEWS
+%attr(755,root,root) %{_libdir}/libserialport.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libserialport.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%doc doxy/html-api/*
+%{_includedir}/libserialport.h
+%attr(755,root,root) %{_libdir}/libserialport.so
+%{_pkgconfigdir}/libserialport.pc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libserialport.git/commitdiff/187ae5d28aa450d827bee53b3fdcc078fdc298a6
More information about the pld-cvs-commit
mailing list