|
|
0f3735e |
%global commit 2a58d7fb349de3062dea61b0fb072f8e7370dde6
|
|
|
0f3735e |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
0f3735e |
|
|
|
0f3735e |
Name: atanua
|
|
|
0f3735e |
Version: 1.3.141220
|
|
|
c6378c3 |
Release: 9%{?dist}
|
|
|
0f3735e |
Summary: Real Time Logic Simulator
|
|
|
0f3735e |
|
|
|
0f3735e |
License: zlib and Bitstream Vera
|
|
|
0f3735e |
# atanua: zlib
|
|
|
0f3735e |
# vera fonts: Bitstream Vera
|
|
|
0f3735e |
URL: http://sol.gfxile.net/atanua/
|
|
|
0f3735e |
Source0: https://github.com/jarikomppa/atanua/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
|
|
0f3735e |
Source1: http://sol.gfxile.net/zip/atanua141220.zip
|
|
|
0f3735e |
Source2: atanua.desktop
|
|
|
0f3735e |
Source3: icon.png
|
|
|
0f3735e |
Source4: x-atanua-simulation.xml
|
|
|
0f3735e |
Source5: atanua.appdata.xml
|
|
|
0f3735e |
Source6: atanua.png
|
|
|
0f3735e |
Source7: atanua-2.png
|
|
|
0f3735e |
|
|
|
0f3735e |
# https://github.com/jarikomppa/atanua/pull/4
|
|
|
0f3735e |
Patch1: 0001-Don-t-crash-on-file-open-failures.patch
|
|
|
0f3735e |
Patch2: 0002-Check-the-correct-pointer-for-NULL.patch
|
|
|
0f3735e |
Patch3: 0003-A-bit-better-error-handling.patch
|
|
|
0f3735e |
Patch4: 0004-Fix-Linux-build.patch
|
|
|
0f3735e |
Patch5: 0005-Allow-builds-without-bundling-the-libraries.patch
|
|
|
0f3735e |
Patch6: 0006-Allow-overriding-the-data-directory-on-build.patch
|
|
|
0f3735e |
Patch7: 0007-Rename-TiXmlNode-ELEMENT-and-TEXT.patch
|
|
|
0f3735e |
Patch8: atanua-fix-build.patch
|
|
|
0f3735e |
|
|
|
0f3735e |
BuildRequires: desktop-file-utils
|
|
|
0f3735e |
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
0f3735e |
BuildRequires: pkgconfig(glib-2.0)
|
|
|
0f3735e |
BuildRequires: pkgconfig(sdl)
|
|
|
0f3735e |
BuildRequires: mesa-libGL-devel
|
|
|
0f3735e |
BuildRequires: mesa-libGLU-devel
|
|
|
0f3735e |
BuildRequires: tinyxml-devel
|
|
|
0f3735e |
BuildRequires: stbi-devel
|
|
|
0f3735e |
BuildRequires: GLee-devel
|
|
|
0f3735e |
BuildRequires: gcc-c++
|
|
|
0f3735e |
BuildRequires: libappstream-glib
|
|
|
0f3735e |
|
|
|
0f3735e |
%description
|
|
|
0f3735e |
Atanua is a real-time logic simulator, designed to help in learning of basic
|
|
|
0f3735e |
boolean logic and electronics. It uses OpenGL hardware-accelerated rendering
|
|
|
0f3735e |
and a custom UI designed for a fast workflow and a very low learning curve,
|
|
|
0f3735e |
letting the students concentrate on learning the subject instead of spending
|
|
|
0f3735e |
time learning the tool.
|
|
|
0f3735e |
|
|
|
0f3735e |
|
|
|
0f3735e |
%prep
|
|
|
0f3735e |
%setup -q -n %{name}-%{commit} -a1
|
|
|
0f3735e |
%patch1 -p1
|
|
|
0f3735e |
%patch2 -p1
|
|
|
0f3735e |
%patch3 -p1
|
|
|
0f3735e |
%patch4 -p1
|
|
|
0f3735e |
%patch5 -p1
|
|
|
0f3735e |
%patch6 -p1
|
|
|
0f3735e |
%patch7 -p1
|
|
|
0f3735e |
%patch8 -p1
|
|
|
0f3735e |
|
|
|
0f3735e |
|
|
|
0f3735e |
%build
|
|
|
0f3735e |
make %{?_smp_mflags} CFLAGS='%{optflags} -DDATADIR=\"%{_datadir}/atanua\"' \
|
|
|
0f3735e |
CC=%{__cc} CXX=%{__cxx} UNBUNDLE=1
|
|
|
0f3735e |
|
|
|
0f3735e |
|
|
|
0f3735e |
%install
|
|
|
0f3735e |
install -d %{buildroot}%{_bindir}
|
|
|
0f3735e |
install -d %{buildroot}%{_datadir}
|
|
|
0f3735e |
install -d %{buildroot}%{_datadir}/mime/packages
|
|
|
0f3735e |
install -d %{buildroot}%{_datadir}/pixmaps
|
|
|
0f3735e |
install -d %{buildroot}%{_datadir}/appdata
|
|
|
0f3735e |
|
|
|
0f3735e |
install atanua %{buildroot}%{_bindir}
|
|
|
0f3735e |
cp -a data %{buildroot}%{_datadir}/atanua
|
|
|
0f3735e |
install -pm644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/atanua.png
|
|
|
0f3735e |
|
|
|
0f3735e |
install -pm644 %{SOURCE4} %{buildroot}%{_datadir}/mime/packages/
|
|
|
0f3735e |
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
|
|
|
0f3735e |
|
|
|
0f3735e |
install -pm644 %{SOURCE5} %{buildroot}%{_datadir}/appdata/
|
|
|
0f3735e |
|
|
|
0f3735e |
|
|
|
0f3735e |
%check
|
|
|
0f3735e |
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
|
|
0f3735e |
|
|
|
0f3735e |
|
|
|
0f3735e |
%post
|
|
|
0f3735e |
/bin/touch --no-create %{_datadir}/mime/packages &>/dev/null || :
|
|
|
0f3735e |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
0f3735e |
|
|
|
0f3735e |
|
|
|
0f3735e |
%postun
|
|
|
0f3735e |
if [ $1 -eq 0 ]
|
|
|
0f3735e |
then
|
|
|
0f3735e |
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
0f3735e |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
|
0f3735e |
fi
|
|
|
0f3735e |
|
|
|
0f3735e |
|
|
|
0f3735e |
%posttrans
|
|
|
0f3735e |
/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
|
|
0f3735e |
|
|
|
0f3735e |
|
|
|
0f3735e |
%files
|
|
|
0f3735e |
%{_bindir}/atanua
|
|
|
0f3735e |
%{_datadir}/atanua
|
|
|
0f3735e |
%{_datadir}/applications/atanua.desktop
|
|
|
0f3735e |
%{_datadir}/mime/packages/x-atanua-simulation.xml
|
|
|
0f3735e |
%{_datadir}/pixmaps/atanua.png
|
|
|
0f3735e |
%{_datadir}/appdata/atanua.appdata.xml
|
|
|
0f3735e |
%doc readme.md
|
|
|
0f3735e |
%license LICENSE
|
|
|
0f3735e |
%license data/vera_copyright.txt
|
|
|
0f3735e |
|
|
|
0f3735e |
|
|
|
0f3735e |
%changelog
|
|
|
c6378c3 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.141220-9
|
|
|
c6378c3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
c6378c3 |
|
|
|
dade6fc |
* Sat Apr 14 2018 Filipe Rosset <rosset.filipe@gmail.com> - 1.3.141220-8
|
|
|
dade6fc |
- rebuilt to fix FTBFS
|
|
|
dade6fc |
|
|
|
be14d06 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.141220-7
|
|
|
be14d06 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
be14d06 |
|
|
|
0f3735e |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.141220-6
|
|
|
0f3735e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0f3735e |
|
|
|
0f3735e |
* Fri Apr 29 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.3.141220-5
|
|
|
0f3735e |
- Use a bigger icon for appstream
|
|
|
0f3735e |
|
|
|
0f3735e |
* Fri Apr 29 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.3.141220-4
|
|
|
0f3735e |
- Correct AppStream component type
|
|
|
0f3735e |
|
|
|
0f3735e |
* Fri Apr 29 2016 Lubomir Rintel <lkundrak@v3.sk> - 1.3.141220-3
|
|
|
0f3735e |
- Add AppStream metadata
|
|
|
0f3735e |
|
|
|
0f3735e |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.141220-2
|
|
|
0f3735e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
0f3735e |
|
|
|
0f3735e |
* Sat Nov 14 2015 Lubomir Rintel <lkundrak@v3.sk> - 1.3.141220-1
|
|
|
0f3735e |
- Initial packaging
|