0dea303
%global libpkg libconcord
62af1b0
Douglas E. Warner d5f3307
Name: concordance
0a25dde
Version: 1.2
66541eb
Release: 18%{?dist}
Douglas E. Warner 14879a4
Summary: Software to program the Logitech Harmony remote control
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
Group: Applications/Communications
Douglas E. Warner d5f3307
License: GPLv3+
Douglas E. Warner d5f3307
URL: http://www.phildev.net/concordance/
Douglas E. Warner d5f3307
Source0: http://downloads.sourceforge.net/sourceforge/concordance/%{name}-%{version}.tar.bz2
62af1b0
e4b062a
BuildRequires: gcc
66541eb
BuildRequires: gcc-c++
62af1b0
BuildRequires: hidapi-devel
62af1b0
BuildRequires: swig
9b7c936
BuildRequires: perl-devel
9b7c936
BuildRequires: perl-generators
62af1b0
BuildRequires: perl(ExtUtils::MakeMaker)
811f0e6
BuildRequires: python2-devel
62af1b0
BuildRequires: autoconf
62af1b0
BuildRequires: automake
62af1b0
BuildRequires: libtool
62af1b0
BuildRequires: libzip-devel
0a25dde
Requires: %{libpkg} = %{version}-%{release}
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
%description
Douglas E. Warner 14879a4
This software will allow you to program your Logitech Harmony universal
Douglas E. Warner d5f3307
remote control.
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
62af1b0
%package -n %{libpkg}
62af1b0
Summary: Library to talk to Logitech Harmony universal remote controls
62af1b0
Group: Development/Libraries
62af1b0
Requires: udev
62af1b0
# For usbnet-based remotes: 900, 1000, 1100
62af1b0
Requires: dnsmasq
62af1b0
Requires(post): /sbin/ldconfig
62af1b0
Requires(postun): /sbin/ldconfig
62af1b0
62af1b0
%description -n %{libpkg}
62af1b0
Library to talk to Logitech Harmony universal remote controls
62af1b0
62af1b0
62af1b0
%package -n %{libpkg}-devel
62af1b0
Summary: Development libraries for libconcord
62af1b0
Group: Development/Libraries
62af1b0
Requires: %{libpkg} = %{version}-%{release}
62af1b0
62af1b0
%description -n %{libpkg}-devel
62af1b0
Development libraries for libconcord
62af1b0
62af1b0
62af1b0
%package -n %{libpkg}-perl
62af1b0
Summary: Perl bindings for libconcord
62af1b0
Group: Development/Libraries
62af1b0
Requires: %{libpkg} = %{version}-%{release}
62af1b0
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
62af1b0
62af1b0
%description -n %{libpkg}-perl
62af1b0
Perl bindings for libconcord
62af1b0
62af1b0
811f0e6
%package -n python2-%{libpkg}
811f0e6
Summary: Python 2 bindings for libconcord
62af1b0
Group: Development/Libraries
62af1b0
Requires: %{libpkg} = %{version}-%{release}
811f0e6
BuildArch: noarch
811f0e6
# Remove these eventually (when F23 goes EOL?)
811f0e6
Provides: %{libpkg}-python = %{version}-%{release}
811f0e6
Obsoletes: %{libpkg}-python < 1.2-7
62af1b0
811f0e6
%description -n python2-%{libpkg}
811f0e6
Python 2 bindings for libconcord
62af1b0
62af1b0
Douglas E. Warner d5f3307
%prep
Douglas E. Warner d5f3307
%setup -q
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
%build
62af1b0
cd %{libpkg}
62af1b0
62af1b0
%configure --disable-static --disable-mime-update
62af1b0
make %{_smp_mflags}
62af1b0
cd -
62af1b0
62af1b0
# perl bindings
62af1b0
cd %{libpkg}/bindings/perl
62af1b0
swig -perl5 concord.i
62af1b0
%{__perl} Makefile.PL INSTALLDIRS=vendor INC=-I../../
62af1b0
#sed -i -e 's|LDFLAGS =|LDFLAGS = -L../../|' Makefile
62af1b0
make %{_smp_mflags}
62af1b0
cd -
62af1b0
62af1b0
# python bindings
62af1b0
cd %{libpkg}/bindings/python
811f0e6
%py2_build
62af1b0
cd -
62af1b0
Douglas E. Warner d5f3307
cd %{name}
62af1b0
export CFLAGS="%{optflags} -I../libconcord"
cd83220
export LDFLAGS="%{__global_ldflags} -L../libconcord/.libs"
Douglas E. Warner d5f3307
%configure --enable-shared
Douglas E. Warner d5f3307
make %{_smp_mflags}
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
%install
62af1b0
cd %{libpkg}
62af1b0
make DESTDIR=%{buildroot} install
62af1b0
make DESTDIR=%{buildroot} install_udev
62af1b0
62af1b0
find %{buildroot} -type f -name \*.a -exec %{__rm} -f {} \;
62af1b0
find %{buildroot} -type f -name \*.la -exec %{__rm}  -f {} \;
62af1b0
cd -
62af1b0
62af1b0
# perl bindings
62af1b0
cd %{libpkg}/bindings/perl
62af1b0
make pure_install PERL_INSTALL_ROOT=%{buildroot}
62af1b0
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
62af1b0
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
62af1b0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
62af1b0
%{__chmod} 755 %{buildroot}%{perl_vendorarch}/auto/concord/concord.so
62af1b0
cd -
62af1b0
62af1b0
# python bindings
62af1b0
cd %{libpkg}/bindings/python
811f0e6
%py2_install
62af1b0
cd -
62af1b0
Douglas E. Warner d5f3307
cd %{name}
Douglas E. Warner d5f3307
make DESTDIR=%{buildroot} install
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
62af1b0
%post -n %{libpkg}
62af1b0
/sbin/ldconfig
62af1b0
/sbin/udevadm control --reload-rules
62af1b0
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
62af1b0
62af1b0
%postun -n %{libpkg}
62af1b0
/sbin/ldconfig
62af1b0
/sbin/udevadm control --reload-rules
62af1b0
if [ $1 -eq 0 ] ; then
62af1b0
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
62af1b0
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
62af1b0
fi
62af1b0
62af1b0
%posttrans -n %{libpkg}
62af1b0
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
62af1b0
Douglas E. Warner d5f3307
%files
Douglas E. Warner d5f3307
%doc Changelog CodingStyle LICENSE SubmittingPatches TODO 
Douglas E. Warner d5f3307
%doc %{name}/README %{name}/INSTALL.linux
Douglas E. Warner d5f3307
%attr(0755, root, root) %{_bindir}/*
Douglas E. Warner d5f3307
%{_mandir}/man1/*
Douglas E. Warner d5f3307
62af1b0
%files -n %{libpkg}
62af1b0
%doc Changelog CodingStyle LICENSE SubmittingPatches
62af1b0
%doc %{libpkg}/README %{libpkg}/INSTALL.linux
62af1b0
/lib/udev/rules.d/*.rules
62af1b0
/lib/udev/*.sh
62af1b0
%{_datadir}/mime/packages/%{libpkg}.xml
62af1b0
%{_libdir}/*.so.*
62af1b0
62af1b0
%files -n %{libpkg}-devel
62af1b0
%doc TODO
62af1b0
%{_includedir}/*.h
62af1b0
%{_libdir}/*.so
62af1b0
62af1b0
%files -n %{libpkg}-perl
62af1b0
%doc %{libpkg}/bindings/perl/README
62af1b0
%{perl_vendorarch}/auto/*
62af1b0
%{perl_vendorarch}/concord.pm
62af1b0
811f0e6
%files -n python2-%{libpkg}
62af1b0
%doc %{libpkg}/bindings/python/README
811f0e6
%{python2_sitelib}/*
62af1b0
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
%changelog
66541eb
* Mon Feb 19 2018 Scott Talbert <swt@techie.net> - 1.2-18
e4b062a
- Add missing BR for gcc and gcc-c++
66541eb
1765500
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-17
1765500
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1765500
5d3a385
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-16
5d3a385
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5d3a385
defcdb2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-15
defcdb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
defcdb2
82ecbd5
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.2-14
82ecbd5
- Perl 5.26 rebuild
82ecbd5
403f0e7
* Fri Mar 03 2017 Scott Talbert <swt@techie.net> - 1.2-13
403f0e7
- Rebuild for libzip 1.2.0
403f0e7
bf83f5c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-12
bf83f5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bf83f5c
edf2ba9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-11
edf2ba9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
edf2ba9
f2754c0
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.2-10
f2754c0
- Perl 5.24 rebuild
f2754c0
b489c44
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-9
b489c44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b489c44
123f2b2
* Mon Jan 25 2016 Scott Talbert <swt@techie.net> - 1.2-8
123f2b2
- Removed superfluous defattrs
123f2b2
811f0e6
* Mon Jan 04 2016 Scott Talbert <swt@techie.net> - 1.2-7
811f0e6
- Modernize python packaging, libconcord-python -> python2-libconcord
811f0e6
0dea303
* Sun Dec 27 2015 Scott Talbert <swt@techie.net> - 1.2-6
0dea303
- Replace define macros with global ones
0dea303
cd83220
* Sat Sep 19 2015 Scott Talbert <swt@techie.net> - 1.2-5
cd83220
- Fixed LDFLAGS so that hardening flags will be included
cd83220
87d28b0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
87d28b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
87d28b0
851c4b2
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.2-3
851c4b2
- Perl 5.22 rebuild
851c4b2
c8c4611
* Thu May 07 2015 Remi Collet <remi@fedoraproject.org> - 1.2-2
c8c4611
- rebuild for new libzip
c8c4611
0a25dde
* Sun Apr 19 2015 Scott Talbert <swt@techie.net> - 1.2-1
0a25dde
- New upstream release 1.2, RHBZ #1209465
0a25dde
62af1b0
* Sat Apr 04 2015 Scott Talbert <swt@techie.net> - 1.1-7
62af1b0
- Merged libconcord package into concordance package
62af1b0
392f1e8
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
392f1e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
392f1e8
ba5ce88
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
ba5ce88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ba5ce88
4c445f6
* Sat Mar 29 2014 Scott Talbert <swt@techie.net> - 1.0-3
4c445f6
- New upstream release 1.1
4c445f6
- Removed items no longer required in recent Fedoras
4c445f6
58387c7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
58387c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
58387c7
08c6242
* Fri Jun 21 2013 Adam Williamson <awilliam@redhat.com> - 1.0-1
08c6242
- new upstream release 1.0
08c6242
a51c4cc
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-5
a51c4cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a51c4cc
5de54fb
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-4
5de54fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5de54fb
d6573c5
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-3
d6573c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d6573c5
2ed35eb
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-2
2ed35eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2ed35eb
d05495f
* Sun Nov 21 2010 Adam Williamson <awilliam@redhat.com> - 0.23-1
d05495f
- bump to 0.23
d05495f
b8dcd68
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-2
b8dcd68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b8dcd68
Douglas E. Warner 7a62e10
* Tue Mar 10 2009 Douglas E. Warner <silfreed@silfreed.net> 0.21-1
Douglas E. Warner 7a62e10
- moved udev/policykit rules to libconcord package
Douglas E. Warner 7a62e10
- supports flashing 5** remotes
Douglas E. Warner 7a62e10
- improved IR learning support
Douglas E. Warner 7a62e10
e83b067
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-6
e83b067
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e83b067
Douglas E. Warner 14879a4
* Fri Jan 30 2009 Douglas E. Warner <silfreed@silfreed.net> 0.20-5
Douglas E. Warner 14879a4
- removing registered marks
Douglas E. Warner 14879a4
Douglas E. Warner d5f3307
* Sat May 03 2008 Douglas E. Warner <silfreed@silfreed.net> 0.20-4
Douglas E. Warner d5f3307
- adding additional docs
Douglas E. Warner d5f3307
- removed harmony provides/obsoletes
Douglas E. Warner d5f3307
- removing private getopt sources
Douglas E. Warner d5f3307
- removing udev/pam_console rules
Douglas E. Warner d5f3307
- running generated xml file through xmllint at build time
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Tue Apr 22 2008 Douglas E. Warner <silfreed@silfreed.net> 0.20-3
Douglas E. Warner d5f3307
- fixed Source0 url to downloads.sourceforge.net instead of dl.sourceforge.net
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Tue Apr 22 2008 Douglas E. Warner <silfreed@silfreed.net> 0.20-2
Douglas E. Warner d5f3307
- fixed Source0 url
Douglas E. Warner d5f3307
- changing to build/install dir rather than setting it in setup macro
Douglas E. Warner d5f3307
- install using autoconf script
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Mon Apr 21 2008 Douglas E. Warner <silfreed@silfreed.net> 0.20-1
Douglas E. Warner d5f3307
- updating to 0.20
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Fri Mar 21 2008 Douglas E. Warner <silfreed@silfreed.net> 0.20-0.2.20080318cvs
Douglas E. Warner d5f3307
- disable static linking against libconcord
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Tue Mar 18 2008 Douglas E. Warner <silfreed@silfreed.net> 0.20-0.1.20080318cvs
Douglas E. Warner d5f3307
- renamed from harmony to concordance
Douglas E. Warner d5f3307
- update to pre-release 0.20 that works with libconcord
Douglas E. Warner d5f3307
- adding BuildRequires libconcord-devel
Douglas E. Warner d5f3307
- adding Obsoletes harmony <= 0.20 and Provides harmony to provide upgrade
Douglas E. Warner d5f3307
  path
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Mon Mar 03 2008 Douglas E. Warner <silfreed@silfreed.net> 0.13-1
Douglas E. Warner d5f3307
- update to 0.13
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Mon Jan 14 2008 Douglas E. Warner <silfreed@silfreed.net> 0.12-1
Douglas E. Warner d5f3307
- update to 0.12
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Fri Oct 12 2007 Douglas E. Warner <silfreed@silfreed.net> 0.11-8
Douglas E. Warner d5f3307
- moving udev/PolicyKit generation from install to build
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Fri Oct 12 2007 Douglas E. Warner <silfreed@silfreed.net> 0.11-7
Douglas E. Warner d5f3307
- fixed typo in harmony-gen-policykit-rules.sh
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Fri Oct 12 2007 Douglas E. Warner <silfreed@silfreed.net> 0.11-6
Douglas E. Warner d5f3307
- generating udev rules at build time
Douglas E. Warner d5f3307
- updated udev rules to include more devices
Douglas E. Warner d5f3307
- generating and packaging PolicyKit rules
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Fri Oct 12 2007 Douglas E. Warner <silfreed@silfreed.net> 0.11-5
Douglas E. Warner d5f3307
- fixing udev rules path
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Fri Oct 12 2007 Douglas E. Warner <silfreed@silfreed.net> 0.11-4
Douglas E. Warner d5f3307
- including license.txt in doc
Douglas E. Warner d5f3307
- switching defattr from (-, root, root, -) to (0644, root, root, 0755)
Douglas E. Warner d5f3307
  and attr(0755) the binary
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Fri Oct 12 2007 Douglas E. Warner <silfreed@silfreed.net> 0.11-3
Douglas E. Warner d5f3307
- removing examples from docs
Douglas E. Warner d5f3307
- installing binary by hand to bindir instead of sbindir
Douglas E. Warner d5f3307
- removed commented epoch
Douglas E. Warner d5f3307
- added ® where appropriate
Douglas E. Warner d5f3307
- reordered elements of spec file; updated buildroot
Douglas E. Warner d5f3307
- added udev rules for creating symlinks with nicer names
Douglas E. Warner d5f3307
- added pam_console perms for setting devices to current user
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Thu Oct 11 2007 Douglas E. Warner <silfreed@silfreed.net> 0.11-2
Douglas E. Warner d5f3307
- removing bogus Requires: ldconfig
Douglas E. Warner d5f3307
- adding BuildRequies: libusb-devel
Douglas E. Warner d5f3307
Douglas E. Warner d5f3307
* Wed Oct 10 2007 Douglas E. Warner <silfreed@silfreed.net> 0.11-1
Douglas E. Warner d5f3307
- Initial RPM release.
Douglas E. Warner d5f3307