diff --git a/.cvsignore b/.cvsignore
index e69de29..7edb18d 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+cssparser-0.9.5.tar.lzma
diff --git a/cssparser-javacc.patch b/cssparser-javacc.patch
new file mode 100644
index 0000000..269d275
--- /dev/null
+++ b/cssparser-javacc.patch
@@ -0,0 +1,12 @@
+--- pom.xml.sav 2008-03-27 23:46:43.000000000 +0200
++++ pom.xml 2010-03-24 10:17:14.507379406 +0200
+@@ -50,6 +50,9 @@
+ org.codehaus.mojo
+ javacc-maven-plugin
+ 2.4
++
++ 1.4
++
+
+
+ javacc
diff --git a/cssparser.spec b/cssparser.spec
new file mode 100644
index 0000000..460c457
--- /dev/null
+++ b/cssparser.spec
@@ -0,0 +1,104 @@
+Name: cssparser
+Version: 0.9.5
+Release: 1%{?dist}
+Summary: CSS Parser
+
+Group: Development/Libraries
+License: LGPLv2
+URL: http://cssparser.sourceforge.net/
+# sh ./fetch-cssparser.sh
+Source0: cssparser-0.9.5.tar.lzma
+Source1: fetch-cssparser.sh
+Patch0: %{name}-javacc.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+
+BuildRequires: sac >= 1.3-6
+BuildRequires: java-devel >= 1:1.6.0
+BuildRequires: junit4
+BuildRequires: javacc-maven-plugin >= 2.6-3
+BuildRequires: maven2-plugin-compiler
+BuildRequires: maven2-plugin-jar
+BuildRequires: maven2-plugin-javadoc
+BuildRequires: maven2-plugin-install
+BuildRequires: maven2-plugin-source
+BuildRequires: maven2-plugin-resources
+BuildRequires: maven-surefire-maven-plugin
+BuildRequires: maven-surefire-provider-junit4
+BuildRequires: maven-doxia-sitetools
+BuildRequires: maven-shared-reporting-impl
+Requires: sac
+
+%description
+A CSS parser which implements SAC (the Simple API for CSS).
+
+%package javadoc
+Group: Documentation
+Summary: Javadoc for %{name}
+
+%description javadoc
+API documentation for %{name}.
+
+
+%prep
+%setup -q -n %{name}
+
+%patch0
+
+%build
+export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
+mvn-jpp \
+ -e \
+ -Dmaven2.jpp.mode=true \
+ -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+ install javadoc:javadoc
+
+%install
+rm -rf %{buildroot}
+
+# jars
+install -d -m 0755 %{buildroot}%{_javadir}
+install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
+
+(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; \
+ do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
+
+%add_to_maven_depmap net.sourceforge.cssparser cssparser %{version} JPP cssparser
+
+# poms
+install -d -m 755 %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml \
+ %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+# javadoc
+install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
+cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
+ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
+rm -rf target/site/api*
+
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%doc doc/license.html doc/readme.html
+
+%files javadoc
+%defattr(-,root,root,-)
+%{_javadocdir}/%{name}-%{version}
+%{_javadocdir}/%{name}
+
+%changelog
+* Wed Mar 24 2010 Alexander Kurtakov 0.9.5-1
+- Initial package.
+
diff --git a/fetch-cssparser.sh b/fetch-cssparser.sh
new file mode 100644
index 0000000..8bc62a0
--- /dev/null
+++ b/fetch-cssparser.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cvs -d:pserver:anonymous@cssparser.cvs.sourceforge.net:/cvsroot/cssparser export -r CSSPARSER_0_9_5 cssparser
+
+tar caf cssparser-0.9.5.tar.lzma cssparser/
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..88fc641 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b82212469e222ab564aef27d6ae8fbd8 cssparser-0.9.5.tar.lzma