public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/stringtemplate] epel10: Modernise spec
@ 2026-08-20 11:50 Mat Booth
  0 siblings, 0 replies; only message in thread
From: Mat Booth @ 2026-08-20 11:50 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/stringtemplate
Branch : epel10
Commit : 0fc7fede6065ecf1572a44908b920501a6efeb81
Author : Mat Booth <mat.booth@redhat.com>
Date   : 2017-12-15T15:32:56+00:00
Stats  : +16/-17 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/stringtemplate/c/0fc7fede6065ecf1572a44908b920501a6efeb81?branch=epel10

Log:
Modernise spec

---
diff --git a/stringtemplate.spec b/stringtemplate.spec
index 7101ff0..87c982c 100644
--- a/stringtemplate.spec
+++ b/stringtemplate.spec
@@ -1,20 +1,19 @@
 Summary: A Java template engine
 Name: stringtemplate
 Version: 3.2.1
-Release: 15%{?dist}
+Release: 16%{?dist}
 URL: http://www.stringtemplate.org/
 Source0: http://www.stringtemplate.org/download/stringtemplate-%{version}.tar.gz
 # Build jUnit tests + make the antlr2 generated code before preparing sources
 Patch0: stringtemplate-3.1-build-junit.patch
 License: BSD
-Group: Development/Libraries
-BuildArch: noarch
-BuildRequires: ant-antlr, ant-junit
-BuildRequires: antlr
-# Standard deps
-BuildRequires: java-devel >= 1:1.6.0
+
+BuildRequires: ant
+BuildRequires: ant-antlr
+BuildRequires: ant-junit
 BuildRequires: javapackages-local
-Requires: antlr-tool
+
+BuildArch: noarch
 
 %description
 StringTemplate is a java template engine (with ports for 
@@ -25,7 +24,6 @@ multiple site skins, and internationalization/localization.
 
 %package        javadoc
 Summary:        API documentation for %{name}
-Group:          Documentation
 Requires:       java-javadoc
 
 %description    javadoc
@@ -41,21 +39,22 @@ ant jar
 ant javadocs -Dpackages= -Djavadocs.additionalparam="-Xdoclint:none"
 
 %install
-install -D build/stringtemplate.jar $RPM_BUILD_ROOT%{_datadir}/java/stringtemplate.jar
-install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
-cp -pR docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
-
-install -Dpm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
-%add_maven_depmap JPP-%{name}.pom stringtemplate.jar
+%mvn_artifact pom.xml build/%{name}.jar
+%mvn_file : %{name}
+%mvn_install -J docs/api/
 
 %files -f .mfiles
-%doc LICENSE.txt README.txt
+%license LICENSE.txt
+%doc README.txt
 
 %files javadoc
-%doc LICENSE.txt
+%license LICENSE.txt
 %{_javadocdir}/%{name}
 
 %changelog
+* Fri Dec 15 2017 Mat Booth <mat.booth@redhat.com> - 3.2.1-16
+- Modernise spec
+
 * Mon Oct  2 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.1-15
 - Workaround strict javadoc doclint
 - Resolves: rhbz#1495145

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-20 11:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-20 11:50 [rpms/stringtemplate] epel10: Modernise spec Mat Booth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox