rpms/concordance/F-8 concordance-gen-policykit-rules.sh, NONE, 1.1 concordance.spec, NONE, 1.1 sources, 1.1, 1.2

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


Author: silfreed

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

Modified Files:
	sources 
Added Files:
	concordance-gen-policykit-rules.sh concordance.spec 
Log Message:
adding concordance


--- NEW FILE concordance-gen-policykit-rules.sh ---
#!/bin/bash
RULE_TEMPLATE_PRE='    <match key="usb_device.vendor_id" int="%s">'
RULE_TEMPLATE='      <match key="usb_device.product_id" int="%s">
        <append key="info.capabilities" type="strlist">access_control</append>
        <merge key="access_control.file" type="copy_property">linux.device_file</merge>
      </match>';
RULE_TEMPLATE_POST='    </match>'

cat <<END
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>

END

VID=0400
PID=c359
printf "$RULE_TEMPLATE_PRE\n" $VID
printf "$RULE_TEMPLATE\n" $PID
printf "$RULE_TEMPLATE_POST\n"

VID=046d
printf "$RULE_TEMPLATE_PRE\n" $VID
for PIDa in `seq 0xc110 0xc14f`; do
	PID=`printf "%x" $PIDa`
	printf "$RULE_TEMPLATE\n" $PID
done
printf "$RULE_TEMPLATE_POST\n"

cat <<END

  </device>
</deviceinfo>
END



--- NEW FILE concordance.spec ---
Name: concordance
Version: 0.20
Release: 4%{?dist}
Summary: Software to program the Logitech® Harmony® remote control
%define policykit_rules 10-%{name}.fdi

Group: Applications/Communications
License: GPLv3+
URL: http://www.phildev.net/concordance/
Source0: http://downloads.sourceforge.net/sourceforge/concordance/%{name}-%{version}.tar.bz2
Source1: concordance-gen-policykit-rules.sh
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

Requires: hal
Requires: pam
Requires: udev
BuildRequires: libusb-devel
BuildRequires: libconcord-devel
BuildRequires: libxml2

%description
This software will allow you to program your Logitech® Harmony® universal
remote control.


%prep
%setup -q

# make sure we don't build against the private getopt sources
%{__rm} -rf win/getopt


%build
cd %{name}
%configure --enable-shared
make %{_smp_mflags}

# generate PolicyKit rules
bash %{SOURCE1} | xmllint - > %{policykit_rules}
if [ -z %{policykit_rules} ]; then
	exit 1
fi


%install
rm -rf %{buildroot}

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

# install PolicyKit rules
install -d %{buildroot}/%{_datadir}/hal/fdi/policy/10osvendor/
install -m 0644 %{policykit_rules} \
	%{buildroot}/%{_datadir}/hal/fdi/policy/10osvendor/


%clean
rm -rf %{buildroot}


%files
%defattr(0644, root, root, 0755)
%doc Changelog CodingStyle LICENSE SubmittingPatches TODO 
%doc %{name}/README %{name}/INSTALL.linux
%{_datadir}/hal/fdi/policy/10osvendor/*
%attr(0755, root, root) %{_bindir}/*
%{_mandir}/man1/*


%changelog
* Sat May 03 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-4
- adding additional docs
- removed harmony provides/obsoletes
- removing private getopt sources
- removing udev/pam_console rules
- running generated xml file through xmllint at build time

* Tue Apr 22 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-3
- fixed Source0 url to downloads.sourceforge.net instead of dl.sourceforge.net

* 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
- install using autoconf script

* Mon Apr 21 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-1
- updating to 0.20

* Fri Mar 21 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-0.2.20080318cvs
- disable static linking against libconcord

* Tue Mar 18 2008 Douglas E. Warner <silfreed at silfreed.net> 0.20-0.1.20080318cvs
- renamed from harmony to concordance
- update to pre-release 0.20 that works with libconcord
- adding BuildRequires libconcord-devel
- adding Obsoletes harmony <= 0.20 and Provides harmony to provide upgrade
  path

* Mon Mar 03 2008 Douglas E. Warner <silfreed at silfreed.net> 0.13-1
- update to 0.13

* Mon Jan 14 2008 Douglas E. Warner <silfreed at silfreed.net> 0.12-1
- update to 0.12

* Fri Oct 12 2007 Douglas E. Warner <silfreed at silfreed.net> 0.11-8
- moving udev/PolicyKit generation from install to build

* Fri Oct 12 2007 Douglas E. Warner <silfreed at silfreed.net> 0.11-7
- fixed typo in harmony-gen-policykit-rules.sh

* Fri Oct 12 2007 Douglas E. Warner <silfreed at silfreed.net> 0.11-6
- generating udev rules at build time
- updated udev rules to include more devices
- generating and packaging PolicyKit rules

* Fri Oct 12 2007 Douglas E. Warner <silfreed at silfreed.net> 0.11-5
- fixing udev rules path

* Fri Oct 12 2007 Douglas E. Warner <silfreed at silfreed.net> 0.11-4
- including license.txt in doc
- switching defattr from (-, root, root, -) to (0644, root, root, 0755)
  and attr(0755) the binary

* Fri Oct 12 2007 Douglas E. Warner <silfreed at silfreed.net> 0.11-3
- removing examples from docs
- installing binary by hand to bindir instead of sbindir
- removed commented epoch
- added ® where appropriate
- reordered elements of spec file; updated buildroot
- added udev rules for creating symlinks with nicer names
- added pam_console perms for setting devices to current user

* Thu Oct 11 2007 Douglas E. Warner <silfreed at silfreed.net> 0.11-2
- removing bogus Requires: ldconfig
- adding BuildRequies: libusb-devel

* Wed Oct 10 2007 Douglas E. Warner <silfreed at silfreed.net> 0.11-1
- Initial RPM release.



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




More information about the fedora-extras-commits mailing list