Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Fedora Release Engineering
a903772a0a dist-git conversion 2010-07-29 15:53:46 +00:00
Matthew Daniels
bb7bac6d50 Fixed a problem in the spec file where a {release} should have been
{alphatag}
2009-12-06 17:19:06 +00:00
Matthew Daniels
e3986c08c9 Edited build tag to avoid a CVS tag clash 2009-12-06 17:08:04 +00:00
Matthew Daniels
b29374cc80 Edited the release tag with a dist macro and changed usage of release to
alphtag throughout.
2009-12-06 17:00:46 +00:00
Matthew Daniels
30659fd7a5 Initial addition to F-11 branch 2009-11-03 19:10:07 +00:00
Toshio くらとみ
b7b98fbc2a Initialize branch F-11 for xinha 2009-11-03 16:12:12 +00:00
6 changed files with 148 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
xinha-0.96-0.1.b2.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: xinha
# $Id$
NAME := xinha
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
6a7202c9fe279beae3f6b0945535ea56 xinha-0.96-0.1.b2.tar.gz

1
xinha.conf Normal file
View file

@ -0,0 +1 @@
Alias /xinha /usr/share/js/xinha-0.96-0.1.b2

145
xinha.spec Normal file
View file

@ -0,0 +1,145 @@
%global alphatag 0.1.b2
Name: xinha
Version: 0.96
Release: 0.1.b2%{?dist}.3
Summary: A WYSIWIG HTML editor component in Javascript
Group: Development/Languages
License: BSD and PHP and LGPLv2+ and CC-BY-SA
URL: http://www.xinha.org
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball (and add my conf file):
#
# svn export -r 1191 http://svn.xinha.org/trunk %{name}-%{version}-%{release}
# tar -czf %{name}-%{version}-%{release}.tar.gz %{name}-%{version}-%{release}/*
Source0: http://fedorahosted.org/release/x/i/%{name}-%{version}-%{alphatag}.tar.gz
Source1: xinha.conf
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
Requires: perl-XML-DOM
Requires: perl-Text-Aspell
# These would be required for some plugins to work
# (those would be the plugins we conveniently remove in %setup)
# * Requires: php-magickwand
# * Requires: php-gd
# * Requires: Some other PEAR libraries which aren't in Fedora (yet)
%description
Xinha is a Javascript component that can be used to enhance a textarea field in
HTML. It can be used on its own or as part of a larger WYSIWYG module such as
Scribite.
%prep
%setup -q -c -n %{name}-%{version}-%{alphatag} -a 0
cp -p %SOURCE1 .
# Remove precompiled binaries and other illegal files
find %{name}-%{version}-%{alphatag} | grep \.jar$ | xargs rm
find %{name}-%{version}-%{alphatag} | grep \.htaccess$ | xargs rm
# Fix permissions on non-executables
find %{name}-%{version}-%{alphatag} | grep \.js$ | xargs chmod a-x
find %{name}-%{version}-%{alphatag} | grep \.php$ | xargs chmod a-x
find %{name}-%{version}-%{alphatag} | grep \.css$ | xargs chmod a-x
find %{name}-%{version}-%{alphatag} | grep \.html$ | xargs chmod a-x
find %{name}-%{version}-%{alphatag} | grep \.svg$ | xargs chmod a-x
# Remove plugins that contain unresolvable dependecies
rm -rf %{name}-%{version}-%{alphatag}/plugins/ImageManager/
rm -rf %{name}-%{version}-%{alphatag}/plugins/ExtendedFileManager/
rm -rf %{name}-%{version}-%{alphatag}/unsupported_plugins/
rm -rf %{name}-%{version}-%{alphatag}/contrib/
# Remove carriage returns
cat %{name}-%{version}-%{alphatag}/skins/inditreuse/README | tr -d "\r \n" > README.unix
mv README.unix %{name}-%{version}-%{alphatag}/skins/inditreuse/README
cat %{name}-%{version}-%{alphatag}/license.txt| tr -d "\r \n" > license.unix
mv license.unix %{name}-%{version}-%{alphatag}/license.txt
cat %{name}-%{version}-%{alphatag}/skins/titan/README | tr -d "\r \n" > README.unix
mv README.unix %{name}-%{version}-%{alphatag}/skins/titan/README
# Organize the documentation files into folders. We can't just
# simply %doc <file> them because they're often named the same
mkdir doc
mkdir doc/tango-images
mkdir doc/tango-icons doc/crystal-icons
mkdir doc/inditreuse-skin doc/titan-skin
mkdir doc/InsertSmiley doc/SmartReplace doc/Equation doc/SpellChecker
mkdir doc/SaveSubmit doc/FormOperations doc/InsertSnippet doc/InsertSnippet2
mv %{name}-%{version}-%{alphatag}/license.txt doc
mv %{name}-%{version}-%{alphatag}/release-notes.txt doc
mv %{name}-%{version}-%{alphatag}/XinhaLoader_readme.txt doc
mv %{name}-%{version}-%{alphatag}/images/tango/COPYING doc/tango-images
mv %{name}-%{version}-%{alphatag}/iconsets/Tango/LICENSE doc/tango-icons
mv %{name}-%{version}-%{alphatag}/iconsets/Tango/README doc/tango-icons
mv %{name}-%{version}-%{alphatag}/iconsets/Crystal/LICENSE doc/crystal-icons
mv %{name}-%{version}-%{alphatag}/iconsets/Crystal/README doc/crystal-icons
mv %{name}-%{version}-%{alphatag}/skins/inditreuse/README doc/inditreuse-skin
mv %{name}-%{version}-%{alphatag}/skins/titan/README doc/titan-skin
mv %{name}-%{version}-%{alphatag}/plugins/InsertSmiley/README.txt doc/InsertSmiley
mv %{name}-%{version}-%{alphatag}/plugins/SmartReplace/readme.txt doc/SmartReplace
mv %{name}-%{version}-%{alphatag}/plugins/Equation/readme.txt doc/Equation
mv %{name}-%{version}-%{alphatag}/plugins/SpellChecker/README doc/SpellChecker
mv %{name}-%{version}-%{alphatag}/plugins/SpellChecker/readme-tech.html doc/SpellChecker
mv %{name}-%{version}-%{alphatag}/plugins/SaveSubmit/README.txt doc/SaveSubmit
mv %{name}-%{version}-%{alphatag}/plugins/FormOperations/README doc/FormOperations
mv %{name}-%{version}-%{alphatag}/plugins/InsertSnippet/readme.html doc/InsertSnippet
mv %{name}-%{version}-%{alphatag}/plugins/InsertSnippet2/readme.html doc/InsertSnippet2
mv %{name}-%{version}-%{alphatag}/examples doc/examples
%build
# There's nothing to build here; we're just copying js/php.
%install
# Clean the build root
rm -rf $RPM_BUILD_ROOT
# Create the directory (if not already there) where js is supposed to go
mkdir -p $RPM_BUILD_ROOT%{_datadir}/js
cp -a %{name}-%{version}-%{alphatag} $RPM_BUILD_ROOT%{_datadir}/js/
# Create conf.d, if it's not there already, and copy over our .conf file
mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d
install -p -m 0644 %{name}.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/%{name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_datadir}/js/%{name}-%{version}-%{alphatag}
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
# Install documentation
# If removed plugins are reintegrated in the future, remember
# to include their documentation files.
%doc doc/*
# Note that this package includes locales, but they are implemented
# in JSON, not .mo files, so we can't currently handle them. We'll
# just have to let Xinha handle them as it sees fit until we have
# a better protocol for doing so.
%changelog
* Sun Dec 6 2009 Matthew Daniels <danielsmw@gmail.com> - 0.96-0.1.b2.3
- Missed a release <-> alphatag interchange on line 125; fixed now.
* Sun Dec 6 2009 Matthew Daniels <danielsmw@gmail.com> - 0.96-0.1.b2.2
- Changed release tag format to add the dist tag and a build number
* Mon Oct 19 2009 Matthew Daniels <danielsmw@gmail.com> - 0.96-0.1.b2
- Spec file submission (initial package creation)