mirror of
https://abf.rosa.ru/djam/plantuml.git
synced 2025-02-22 18:03:03 +00:00
81 lines
1.8 KiB
RPMSpec
81 lines
1.8 KiB
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
|
|
Name: plantuml
|
|
Version: 1.2025.1
|
|
Release: 1
|
|
Summary: Generate diagrams from textual description
|
|
URL: https://plantuml.com
|
|
Source0: https://github.com/plantuml/plantuml/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
License: GPLv3
|
|
Group: Office
|
|
BuildArch: noarch
|
|
BuildRequires: java-devel
|
|
BuildRequires: pkgconfig(openssl3.3)
|
|
Requires: java
|
|
Requires: graphviz
|
|
|
|
%description
|
|
Generate UML diagram from textual description
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
sed -i "s/version = .*/version = %{version}/" gradle.properties
|
|
|
|
./gradlew clean build \
|
|
pdfJar \
|
|
generateMetadataFileForMavenPublication \
|
|
generatePomFileForMavenPublication \
|
|
-x test \
|
|
-x javaDoc \
|
|
-PjavacRelease=8 \
|
|
--no-daemon
|
|
|
|
%install
|
|
install -Dm0644 build/libs/%{name}-%{version}.jar %{buildroot}%{_datadir}/%{name}/%{name}.jar
|
|
|
|
# menu-entry
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
|
|
[Desktop Entry]
|
|
Name=PlantUML
|
|
Name[ru]=PluntUML
|
|
GenericName=PlantUML
|
|
GenericName[ru]=PlantUML
|
|
Comment=UML sheme viewer
|
|
Comment[ru]=Просмотр UML схем
|
|
Exec=%{name}
|
|
Icon=%{name}
|
|
Terminal=false
|
|
Type=Application
|
|
StartupNotify=true
|
|
Categories=Application;Graphics;
|
|
EOF
|
|
|
|
# script start program
|
|
install -d %{buildroot}%{_bindir}
|
|
cat > %{buildroot}%{_bindir}/%{name} << EOF
|
|
#!/bin/bash
|
|
PROGRAM_DIR=/usr/share/sweethome3d
|
|
exec java -jar %{_datadir}/%{name}/%{name}.jar
|
|
EOF
|
|
|
|
chmod +x %{buildroot}%{_bindir}/%{name}
|
|
|
|
# incons
|
|
install -d %{buildroot}%{_datadir}/pixmaps
|
|
install -Dm0644 src/net/sourceforge/plantuml/version/logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
|
|
%files
|
|
%doc README.md license.txt COPYING
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/%{name}/%{name}.jar
|
|
%{_datadir}/pixmaps/%{name}.png
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|