diff --git a/.tito/packages/.readme b/.tito/packages/.readme new file mode 100644 index 0000000..b9411e2 --- /dev/null +++ b/.tito/packages/.readme @@ -0,0 +1,3 @@ +the .tito/packages directory contains metadata files +named after their packages. Each file has the latest tagged +version and the project's relative directory. diff --git a/.tito/packages/xephem b/.tito/packages/xephem new file mode 100644 index 0000000..0ee5b0d --- /dev/null +++ b/.tito/packages/xephem @@ -0,0 +1 @@ +4.0.1-1 ./ diff --git a/.tito/tito.props b/.tito/tito.props new file mode 100644 index 0000000..eab3f19 --- /dev/null +++ b/.tito/tito.props @@ -0,0 +1,5 @@ +[buildconfig] +builder = tito.builder.Builder +tagger = tito.tagger.VersionTagger +changelog_do_not_remove_cherrypick = 0 +changelog_format = %s (%ae) diff --git a/xephem.spec b/xephem.spec new file mode 100644 index 0000000..7dce93d --- /dev/null +++ b/xephem.spec @@ -0,0 +1,51 @@ +Name: xephem +Version: 4.0.1 +Release: 1 +Summary: XEphem is an interactive astronomy program for all UNIX platforms. +License: MIT + +URL: https://github.com/XEphem/XEphem + +Source0: %{name}-%{version}.tgz + +BuildRequires: gcc +BuildRequires: make +BuildRequires: motif-devel + +Requires: motif + +%description +XEphem is an interactive astronomy program for all UNIX platforms. Originally +written by Elwood Downey in the 1990s, it has graciously been released under the +MIT License. It is now maintained by an "XEphem" organization, with its source +code residing at https://github.com/XEphem/XEphem. + +%if 0%{?rhel} >= 7 +%global motifl %{_libdir} +%endif + +%prep +%setup -q + +%build +cd GUI/xephem +make MOTIFL=%{motifl} +gzip -c %{name}.man > %{name}.1x.gz + +%install +mkdir -p %{buildroot}/%{_bindir} +mkdir -p %{buildroot}/%{_mandir}/man1x/ + +cd GUI/xephem +install -m 0755 %{name} %{buildroot}/%{_bindir} +install -m 0444 %{name}.1x.gz %{buildroot}/%{_mandir}/man1x/ + +%files +%{_bindir}/%{name} +%{_mandir}/man1x/%{name}.1x.gz + +%changelog +* Fri Mar 05 2021 Douglas Needham 4.0.1-1 +- New RPM package built with tito + +