From 07e0485950387c5a626a36563d5cc593534a7695 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 27 Jun 2009 23:47:52 +0000 Subject: Add support for building rpm packages. Now just a rpmbuild -ta will do. --- libax25.spec.in | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 libax25.spec.in (limited to 'libax25.spec.in') diff --git a/libax25.spec.in b/libax25.spec.in new file mode 100644 index 0000000..b7e38c6 --- /dev/null +++ b/libax25.spec.in @@ -0,0 +1,61 @@ +Name: libax25 +Version: @BASEVERSION@@EXTRAVERSION@ +Release: 1 +Summary: AX.25 library for hamradio applications + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://www.linux-ax25.org/ +Source0: http://www.linux-ax25.org/pub/%{name}/%{name}-@VERSION@.tar.gz +BuildRoot: %{_tmppath}/%{name}-@VERSION@-%{release}-root-%(%{__id_u} -n) + +%description +libax25 is a library for ham radio applications that use the AX.25, NETROM +or ROSE protocols. Included are routines to do ax25 address parsing, common +ax25 application config file parsing, etc. + +%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 -n %{name}-@VERSION@ + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING README +%{_libdir}/*.so.* +%{_mandir}/man?/* + +%files devel +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING README +%{_includedir}/* +%{_libdir}/*.so + +%changelog +* Sat Jun 27 2009 Ralf Baechle +- Initial version -- cgit v1.2.3