rpms/libconcord/F-8 libconcord.spec,NONE,1.1 sources,1.1,1.2

Douglas E. Warner (silfreed) fedora-extras-commits at redhat.com
Mon May 12 14:23:46 UTC 2008


Author: silfreed

Update of /cvs/pkgs/rpms/libconcord/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2197/F-8

Modified Files:
	sources 
Added Files:
	libconcord.spec 
Log Message:
adding libconcord


--- NEW FILE libconcord.spec ---
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define mainpkg concordance

Name: libconcord
Version: 0.20
Release: 5%{?dist}
Summary: Library to talk to Logitech® Harmony® universal remote controls

Group: Development/Libraries
License: GPLv3+
URL: http://phildev.net/concordance/
Source0: http://downloads.sourceforge.net/sourceforge/concordance/%{mainpkg}-%{version}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildRequires: libusb-devel
BuildRequires: swig
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: python-devel
BuildRequires: python-setuptools-devel
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

%description
Library to talk to Logitech® Harmony® universal remote controls


%package devel
Summary: Development libraries for libconcord
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
Development libraries for libconcord


%package perl
Summary: Perl bindings for libconcord
Group: Development/Libraries
Requires: libconcord = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description perl
Perl bindings for libconcord


%package python
Summary: Python bindings for libconcord
Group: Development/Libraries
Requires: libconcord = %{version}-%{release}

%description python
Python bindings for libconcord


%prep
%setup -q -n %{mainpkg}-%{version}


%build
cd %{name}
%configure --disable-static
make %{_smp_mflags}

# perl bindings
cd bindings/perl
swig -perl5 concord.i
%{__perl} Makefile.PL INSTALLDIRS=vendor INC=-I../../
#sed -i -e 's|LDFLAGS =|LDFLAGS = -L../../|' Makefile
make %{_smp_mflags}
cd -

# python bindings
cd bindings/python
%if 0%{?fedora} > 8
CFLAGS="%{optflags}" %{__python} setup.py build
%else
CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
%endif
cd -


%install
rm -rf %{buildroot}

cd %{name}
make DESTDIR=%{buildroot} install

find %{buildroot} -type f -name \*.a -exec %{__rm} -f {} \;
find %{buildroot} -type f -name \*.la -exec %{__rm}  -f {} \;

# perl bindings
cd bindings/perl
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{__chmod} 755 %{buildroot}%{perl_vendorarch}/auto/concord/concord.so
cd -

# python bindings
cd bindings/python
%if 0%{?fedora} > 8
%{__python} setup.py install -O1 --skip-build --root %{buildroot} --install-purelib %{python_sitearch}
%else
%{__python} -c 'import setuptools; execfile("setup.py")' install -O1 --skip-build --root %{buildroot} --install-purelib %{python_sitearch}
%endif
cd -


#%check
#cd %{name}
#
## perl bindings
#cd bindings/perl
#make test
#cd -


%clean
rm -rf %{buildroot}


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-, root, root, -)
%doc Changelog CodingStyle LICENSE SubmittingPatches
%doc %{name}/README %{name}/INSTALL.linux
%{_libdir}/*.so.*

%files devel
%defattr(-, root, root)
%doc TODO
%{_includedir}/*.h
%{_libdir}/*.so

%files perl
%defattr(-, root, root)
%doc %{name}/bindings/perl/README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/concord.pm

%files python
#%doc %{name}/bindings/python/README
%defattr(-, root, root)
%{python_sitearch}/*


%changelog
* Sat May 03 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-5
- fixing TODO file included twice
- adding bindings docs

* Sat May 03 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-4
- installing python packages to sitearch again
- adding additional docs

* Wed Apr 23 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-3
- fixed Source0 url to downloads.sourceforge.net instead of dl.sourceforge.net
- fixing mode of concord.so
- fixing python egg generation; adding buildrequire for python-setuptools-devel

* Tue Apr 22 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-2
- fixed Source0 url
- changing to build/install dir rather than setting it in setup macro
- adding perl/python bindings

* Mon Apr 21 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-1
- update to 0.20
- removing unneeded gcc 4.3 patch

* Mon Mar 24 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-0.3.20080318cvs
- moved Requires ldconfig to post/postun
- adding patch for gcc 4.3 to define extra headers

* Tue Mar 18 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-0.2.20080318cvs
- adding devel dependancy on main package
- moved TODO from main package to devel
- fixed license to be GPLv3+, not GPLv2+
- disabling static linking
- removing static libraries

* Tue Mar 18 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-0.1.20080318cvs
- Initial RPM release.



Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/libconcord/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 May 2008 04:14:37 -0000	1.1
+++ sources	12 May 2008 14:23:00 -0000	1.2
@@ -0,0 +1 @@
+c2487e851864f38c4da4fe02093652a5  concordance-0.20.tar.bz2




More information about the fedora-extras-commits mailing list