[cssparser] Update to latest upstream release.

Alexander Kurtakov akurtakov at fedoraproject.org
Wed Oct 26 07:15:15 UTC 2011


commit 2b9e834cc1ceae11a8abc9867f338621d6a8eb69
Author: Alexander Kurtakov < <akurtako at redhat.com>
Date:   Wed Oct 26 10:15:02 2011 +0300

    Update to latest upstream release.
    
    Adapt to current guidelines.

 .gitignore             |    1 +
 .project               |   17 +++++++++++++++++
 cssparser-javacc.patch |   12 ------------
 cssparser.spec         |   44 +++++++++++++++-----------------------------
 fetch-cssparser.sh     |    4 ++--
 sources                |    2 +-
 6 files changed, 36 insertions(+), 44 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7edb18d..a92c413 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 cssparser-0.9.5.tar.lzma
+cssparser-0.9.6.tar.xz
diff --git a/.project b/.project
new file mode 100644
index 0000000..78edfe5
--- /dev/null
+++ b/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>cssparser</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.dltk.core.scriptbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>net.sourceforge.shelled.core.nature</nature>
+	</natures>
+</projectDescription>
diff --git a/cssparser.spec b/cssparser.spec
index 107c7b8..29a0c18 100644
--- a/cssparser.spec
+++ b/cssparser.spec
@@ -1,15 +1,14 @@
 Name:           cssparser
-Version:        0.9.5
-Release:        4%{?dist}
+Version:        0.9.6
+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
+Source0:        cssparser-%{version}.tar.xz
 Source1:        fetch-cssparser.sh
-Patch0:         %{name}-javacc.patch
 
 BuildArch: noarch
 
@@ -23,7 +22,7 @@ BuildRequires: maven-javadoc-plugin
 BuildRequires: maven-install-plugin
 BuildRequires: maven-source-plugin
 BuildRequires: maven-resources-plugin
-BuildRequires: maven-surefire-maven-plugin
+BuildRequires: maven-surefire-plugin
 BuildRequires: maven-surefire-provider-junit4
 BuildRequires: maven-doxia-sitetools
 BuildRequires: maven-shared-reporting-impl
@@ -41,55 +40,42 @@ Requires:       jpackage-utils
 API documentation for %{name}.
 
 %prep
-%setup -q -n %{name}
-
-%patch0
+%setup -q 
 
 %build
-export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
-mvn-jpp \
-        -e \
-        -Dmaven2.jpp.mode=true \
-        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-        install javadoc:javadoc
+mvn-rpmbuild install javadoc:javadoc
 
 %install
-rm -rf %{buildroot}
-
 # jars
 install -d -m 0755 %{buildroot}%{_javadir}
 install -m 644 target/%{name}-%{version}.jar   %{buildroot}%{_javadir}/%{name}.jar
 
-%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
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
 
 # javadoc
 install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
 cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
 rm -rf target/site/api*
 
-%post
-%update_maven_depmap
-
-%postun
-%update_maven_depmap
-
 %files
-%defattr(-,root,root,-)
 %{_javadir}/*
 %{_mavenpomdir}/*
 %{_mavendepmapfragdir}/*
-%doc doc/license.html doc/readme.html
+%doc LICENSE.txt doc/license.html doc/readme.html
 
 %files javadoc
-%defattr(-,root,root,-)
 %{_javadocdir}/%{name}
+%doc LICENSE.txt
 
 %changelog
+* Wed Oct 26 2011 Alexander Kurtakov <akurtako at redhat.com> 0.9.6-1
+- Update to latest upstream release.
+- Adapt to current guidelines.
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.5-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
diff --git a/fetch-cssparser.sh b/fetch-cssparser.sh
index 8bc62a0..a289385 100644
--- a/fetch-cssparser.sh
+++ b/fetch-cssparser.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-cvs -d:pserver:anonymous at cssparser.cvs.sourceforge.net:/cvsroot/cssparser export -r CSSPARSER_0_9_5 cssparser
+svn export https://cssparser.svn.sourceforge.net/svnroot/cssparser/tags/cssparser-0.9.6/ 
 
-tar caf cssparser-0.9.5.tar.lzma cssparser/
\ No newline at end of file
+tar caf cssparser-0.9.6.tar.xz cssparser-0.9.6/
\ No newline at end of file
diff --git a/sources b/sources
index 88fc641..0626458 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b82212469e222ab564aef27d6ae8fbd8  cssparser-0.9.5.tar.lzma
+e75330a44bd7e0816a8f28f92333ff05  cssparser-0.9.6.tar.xz


More information about the scm-commits mailing list