Skip to content

Commit

Permalink
php-horde-Horde-Text-Filter: remove non-free stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jan 13, 2013
1 parent 1d6ff9b commit eacc2c4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
Expand Up @@ -8,14 +8,18 @@

Name: php-horde-Horde-Text-Filter
Version: 2.0.4
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Horde Text Filter API

Group: Development/Libraries
License: LGPLv2+
URL: http://pear.horde.org
Source0: http://%{pear_channel}/get/%{pear_name}-%{version}.tgz

# remove non-free stuff
# http://bugs.horde.org/ticket/11870
# pear download Horde_Text_Filter
# ./strip.sh %{version}
Source0: %{pear_name}-%{version}-strip.tgz
Source1: strip.sh
# http://bugs.horde.org/ticket/11943
Patch0: %{pear_name}-php55.patch

Expand Down Expand Up @@ -135,6 +139,9 @@ fi


%changelog
* Sun Jan 13 2013 Remi Collet <RPMS@FamilleCollet.com> - 2.0.4-2
- remove non-free stuff

* Thu Jan 10 2013 Remi Collet <RPMS@FamilleCollet.com> - 2.0.4-1
- Update to 2.0.4 for remi repo
- add option for test (need investigation)
Expand Down
22 changes: 22 additions & 0 deletions php/horde/php-horde-Horde-Text-Filter/strip.sh
@@ -0,0 +1,22 @@
#!/bin/sh

name=Horde_Text_Filter
list=$(mktemp)

if [ -f $name-$1.tgz ]
then
tar xif $name-$1.tgz
tar tf $name-$1.tgz >$list.old

rm $name-$1/lib/Horde/Text/Filter/JavascriptMinify/JsMin.php
sed -e '/JsMin.php/d' -i package.xml

tar czf $name-$1-strip.tgz package.xml $name-$1
tar tf $name-$1-strip.tgz | grep -v '/$' >$list.new

diff $list.old $list.new
rm -rf $name-$1 package.xml
else
echo "usage $0 <version>"
fi
rm -f $list*

0 comments on commit eacc2c4

Please sign in to comment.