diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f9e172 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tikzit-2.0.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..5babdd7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tikzit-2.0.tar.gz) = b0838b75d28bbede58d264964a0c2fca2c4119b014b478dc443d36c8352fbe9fc08e1d4566aa5b94825df92283e715d953373fb8ac5f02ee947a8375c95f5534 diff --git a/tikzit.spec b/tikzit.spec new file mode 100644 index 0000000..fe526e2 --- /dev/null +++ b/tikzit.spec @@ -0,0 +1,49 @@ +Name: tikzit +URL: https://tikzit.github.io/ +Version: 2.0 +Release: 1%{?dist} +License: GPLv3+ +Summary: Diagram editor for pgf/TikZ +Source: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz + +Requires: hicolor-icon-theme +BuildRequires: gcc-c++ +BuildRequires: flex +BuildRequires: bison +BuildRequires: qt5-qtbase-devel + +%description +TikZiT is a graphical tool for rapidly creating an editing node-and-edge +style graphs. It was originally created to aid in the typesetting of +"dot" diagrams of interacting quantum observables, but can be used as a +general graph editing program. + +%prep +%autosetup -n %{name}-%{version} + +%build +export OBJCFLAGS="%{optflags}" +%qmake_qt5 PREFIX=%{_prefix} +%make_build V=1 +sed -i "s|\r||g" README.md + +%install +%make_install INSTALL_ROOT="%{buildroot}" + +desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop + +%files +%{_bindir}/tikzit +%license COPYING +%doc README.md +%{_datadir}/mime/packages/user-tikz-document.xml +%{_datadir}/icons/hicolor/*/apps/%{name}.png +%{_datadir}/icons/hicolor/*/apps/%{name}.svg +%{_datadir}/applications/%{name}.desktop + +%changelog +* Thu Dec 06 2018 W. Michael Petullo 2.0-1 +- New upstream version + +* Tue Nov 04 2014 Eric Smith 1.0-1 +- Initial version