mirror of
https://abf.rosa.ru/djam/plantuml.git
synced 2025-02-23 06:22:54 +00:00
Imported from SRPM
This commit is contained in:
commit
ea700b6456
2 changed files with 82 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
plantuml-1.2023.1.tar.gz: db1bfa1eee2dda53e45f6b319ef10468714f385f
|
80
plantuml.spec
Normal file
80
plantuml.spec
Normal file
|
@ -0,0 +1,80 @@
|
||||||
|
%define debug %nil
|
||||||
|
%define debug_package %nil
|
||||||
|
|
||||||
|
Name: plantuml
|
||||||
|
Version: 1.2023.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
|
||||||
|
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue