Projects
home:wkazubski:hamradio
hamlib
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 7
View file
hamlib.spec
Changed
@@ -1,153 +1,121 @@ # # spec file for package hamlib -# Please submit bug reports / bug fixes to http://bugs.opensuse.org # -# norootforbuild - -Name: hamlib -URL: http://hamlib.sourceforge.net -License: LGPL -Group: Productivity/Hamradio/TRX-Control -Autoreqprov: on -Version: 1.2.15.3 -Release: 1 -Summary: Run-time library to control radio transcievers and receivers -Source: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - -BuildRequires: python gcc gcc-c++ glibc-devel binutils libtool findutils-locate textutils make patch fileutils libxml2-devel libusb-devel pkg-config +%define date 20150815 +%define soname 2 + +Name: hamlib +Version: 3.0_git%{date} +Release: 0 +License: LGPL-2.1 +Summary: Run-time library to control radio transcievers and receivers +Url: http://hamlib.sourceforge.net +Group: Productivity/Hamradio/Other +Source: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +BuildRequires: gcc-c++ +BuildRequires: gd-devel +BuildRequires: libtool +BuildRequires: libusb-devel +BuildRequires: makeinfo +BuildRequires: pkg-config +BuildRequires: readline-devel + +Requires(post): info +Requires(preun): info %description - Most recent amateur radio transceivers allow external control of their - functions through a computer interface. Unfortunately, control commands are - not always consistent across a manufacturer's product line and each - manufacturer's product line differs greatly from its competitors. - . - This library addresses that issue by providing a standardised programming - interface that applications can talk to and translating that into the - appropriate commands required by the radio in use. - . - This package provides the run-time form of the library. If you wish to - develop software using this library you need the 'hamlib-devel' package. - . - Also included in the package is a simple radio control program 'rigctl', - which let one control a radio transceiver or receiver, either from - command line interface or in a text-oriented interactive interface. +The Ham Radio Control Libraries, Hamlib for short, is a development effort to +provide a consistent interface for programmers wanting to incorporate radio +control in their programs. Hamlib is not a complete user application, rather, +it is a software layer intended to make controlling various radios and other +shack hardware much easier. Hamlib will allow authors of such software as +logging programs, digital communications programs, or those wanting to develop +the ultimate radio control software to concentrate on the user interface and +the basic function of the program rather than radio control. %package devel -Summary: Development library to control radio transcievers and receivers -Group: Development/Libraries -Requires: hamlib +Summary: Hamlib development libraries +Group: Development/Libraries/Other +Requires: %{name} = %{version} %description devel - Most recent amateur radio transceivers allow external control of their - functions through a computer interface. Unfortunately, control commands are - not always consistent across a manufacturer's product line and each - manufacturer's product line differs greatly from its competitors. - . - This library addresses that issue by providing a standardised programming - interface that applications can talk to and translating that into the - appropriate commands required by the radio in use. - . - This package provides the development library. If you wish to run applications - developed using this library you'll need the 'hamlib' package. - -#%package c++ -#Summary: Hamlib radio control library C++ binding -#Group: Development/Libraries -#Requires: hamlib - -#%description c++ -#C++ Binding. - -#%package c++-devel -#Summary: Hamlib radio control library C++ binding headers and static libs -#Group: Development/Libraries -#Requires: hamlib, hamlib-devel - -#%description c++-devel -#This package contains all of the headers and the static libraries -#for C++ binding of Hamlib. - -#You'll only need this package if you are doing development. - -#%package perl -#Summary: Hamlib radio control library Perl binding -#Group: Development/Libraries -#Requires: hamlib -# -#%description perl -#Perl Binding. +Hamlib provides a consistent interface for programmers wanting to incorporate +radio control in their programsadio control in their programs. + +%package -n libhamlib++%{soname} +Summary: Hamlib C++ libraries +Group: Development/Libraries/Other + +%description -n libhamlib++%{soname} +Hamlib provides a consistent interface for programmers wanting to incorporate +radio control in their programs. + +%package -n libhamlib++%{soname}-devel +Summary: Hamlib C++ development libraries +Group: Development/Libraries/Other +Requires: hamlib-devel = %{version} +Requires: libhamlib++%{soname} = %{version} + +%description -n libhamlib++%{soname}-devel +Hamlib provides a consistent interface for programmers wanting to incorporate +radio control in their programs. %prep %setup %build +autoreconf --force --install +%configure --without-perl-binding \ + --without-tcl-binding \ + --with-xml-support -LIBS="-lpthread" CFLAGS="-pthread" %configure --without-cxx-binding \ - --without-perl-binding \ - --without-kylix-binding \ - --without-tcl-binding \ - --without-python-binding -make -#CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" all +make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT install-strip +%make_install -%clean -rm -rf $RPM_BUILD_ROOT +rm %{buildroot}%{_libdir}/libhamlib.la +rm %{buildroot}%{_libdir}/libhamlib++.la -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz +%postun +/sbin/ldconfig +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%postun -p /sbin/ldconfig +%post -n libhamlib++%{soname} -p /sbin/ldconfig +%postun -n libhamlib++%{soname} -p /sbin/ldconfig %files -%defattr(644, root, root, 755) +%defattr(-,root,root) %doc AUTHORS LICENSE NEWS - +%{_bindir}/* %{_mandir}/man1/* %{_mandir}/man8/* - -%defattr(755, root, root, 755) %{_libdir}/libhamlib.so.* -%dir %{_libdir}/hamlib -%{_libdir}/hamlib/hamlib-*.so - -%{_bindir}/* -%{_sbindir}/* +%{_infodir}/hamlib.info.gz +%{_datadir}/doc/hamlib %files devel -%defattr(644, root, root, 755) +%defattr(-,root,root) %dir %{_includedir}/hamlib %{_includedir}/hamlib/*.h %{_datadir}/aclocal/hamlib.m4 %{_libdir}/pkgconfig/hamlib.pc %{_libdir}/libhamlib.so %{_libdir}/libhamlib.a -%{_libdir}/libhamlib.la -%{_libdir}/hamlib/*.la -%{_libdir}/hamlib/*.a - -#%files c++ -#%defattr(755, root, root, 755) -#%{_libdir}/libhamlib++-%{version}.so - - -#%files c++-devel -#%defattr(644, root, root, 755) - -#%{_includedir}/hamlib/rigclass.h -#%{_includedir}/hamlib/rotclass.h -#%{_datadir}/aclocal/hamlib++.m4 -#%{_libdir}/libhamlib++.a -#%{_libdir}/libhamlib++.la +%files -n libhamlib++%{soname} +%defattr(-,root,root) +%{_libdir}/libhamlib++.so.* -#%files perl -#%defattr(755, root, root, 755) -#/usr/local/lib/perl/5.6.1/Hamlib.pm -#%dir /usr/local/lib/perl/5.6.1/auto/Hamlib -#%doc /usr/local/man/man3/Hamlib.3pm +%files -n libhamlib++%{soname}-devel +%defattr(-,root,root) +%{_libdir}/libhamlib++.so +%{_libdir}/libhamlib++.a +%changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.