diff -ruN asterisk-sounds-1.2.1-orig/asterisk-sounds.spec asterisk-sounds-1.2.1/asterisk-sounds.spec --- asterisk-sounds-1.2.1-orig/asterisk-sounds.spec 1969-12-31 19:00:00.000000000 -0500 +++ asterisk-sounds-1.2.1/asterisk-sounds.spec 2006-09-09 17:13:22.000000000 -0400 @@ -0,0 +1,42 @@ +Summary: Asterisk PBX Sounds +Name: asterisk-sounds +Distribution: RedHat +Version: 1.2.1 +Release: 1 +License: BSD +URL: http://www.asterisk.org +Group: Utilities/System +Vendor: Linux Support Services, inc. +Packager: Jonathan Shapiro (shap@eros-os.org) +BuildRoot: /tmp/%{name}-%{version}-root +Source: %{name}-%{version}.tar.gz +Requires: asterisk >= 1.2 + +%description +Additional sound files for the Asterisk PBX. + +%prep +%setup + +%build + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + + +%files + +# Sound files -- careful here! Most (but not all) of the directories +# are provided by the underlying asterisk package and are owned by +# that package. +# +%attr(0644,root,root) /var/lib/asterisk/sounds/*.gsm +%attr(0644,root,root) /var/lib/asterisk/sounds/letters/*.gsm +%attr(0644,root,root) /var/lib/asterisk/sounds/phonetic/*.gsm +%attr(0755,root,root) %dir /var/lib/asterisk/sounds/silence +%attr(0644,root,root) /var/lib/asterisk/sounds/silence/*.gsm +%attr(0755,root,root) %dir /var/lib/asterisk/sounds/wx +%attr(0644,root,root) /var/lib/asterisk/sounds/wx/*.gsm +%attr(0755,root,root) %dir /var/lib/asterisk/sounds/ha +%attr(0644,root,root) /var/lib/asterisk/sounds/ha/*.gsm diff -ruN asterisk-sounds-1.2.1-orig/Makefile asterisk-sounds-1.2.1/Makefile --- asterisk-sounds-1.2.1-orig/Makefile 2005-12-01 18:20:51.000000000 -0500 +++ asterisk-sounds-1.2.1/Makefile 2006-09-09 17:03:15.000000000 -0400 @@ -18,6 +18,8 @@ # Default -> leave empty INSTALL_PREFIX= +RPMVERSION=1.2.1 + # Staging directory # Files are copied here temporarily during the install process # For example, make DESTDIR=/tmp/asterisk woud put things in @@ -114,6 +116,9 @@ done install: all datafiles +spec: + sed "s/^Version:.*/Version: $(RPMVERSION)/g" redhat/asterisk-sounds.spec.in > asterisk-sounds.spec ; \ + FORCE: update: diff -ruN asterisk-sounds-1.2.1-orig/redhat/asterisk-sounds.spec.in asterisk-sounds-1.2.1/redhat/asterisk-sounds.spec.in --- asterisk-sounds-1.2.1-orig/redhat/asterisk-sounds.spec.in 1969-12-31 19:00:00.000000000 -0500 +++ asterisk-sounds-1.2.1/redhat/asterisk-sounds.spec.in 2006-09-09 17:13:20.000000000 -0400 @@ -0,0 +1,42 @@ +Summary: Asterisk PBX Sounds +Name: asterisk-sounds +Distribution: RedHat +Version: CVS +Release: 1 +License: BSD +URL: http://www.asterisk.org +Group: Utilities/System +Vendor: Linux Support Services, inc. +Packager: Jonathan Shapiro (shap@eros-os.org) +BuildRoot: /tmp/%{name}-%{version}-root +Source: %{name}-%{version}.tar.gz +Requires: asterisk >= 1.2 + +%description +Additional sound files for the Asterisk PBX. + +%prep +%setup + +%build + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + + +%files + +# Sound files -- careful here! Most (but not all) of the directories +# are provided by the underlying asterisk package and are owned by +# that package. +# +%attr(0644,root,root) /var/lib/asterisk/sounds/*.gsm +%attr(0644,root,root) /var/lib/asterisk/sounds/letters/*.gsm +%attr(0644,root,root) /var/lib/asterisk/sounds/phonetic/*.gsm +%attr(0755,root,root) %dir /var/lib/asterisk/sounds/silence +%attr(0644,root,root) /var/lib/asterisk/sounds/silence/*.gsm +%attr(0755,root,root) %dir /var/lib/asterisk/sounds/wx +%attr(0644,root,root) /var/lib/asterisk/sounds/wx/*.gsm +%attr(0755,root,root) %dir /var/lib/asterisk/sounds/ha +%attr(0644,root,root) /var/lib/asterisk/sounds/ha/*.gsm