vala/vala.spec

163 lines
4.8 KiB
RPMSpec
Raw Normal View History

2022-04-19 14:18:13 +08:00
%global api_ver 0.56
2020-06-04 16:45:10 +08:00
%global priority 90
2019-12-17 14:45:21 +08:00
%global vala_binaries vala valac vala-gen-introspect vapigen
%global vala_manpages valac vala-gen-introspect vapigen
Name: vala
2023-02-02 14:37:48 +08:00
Version: 0.56.3
Release: 3
2019-12-17 14:45:21 +08:00
Summary: Compiler Using the GObject Type System
License: LGPLv2+ and BSD
URL: https://wiki.gnome.org/Projects/Vala
2022-06-08 11:37:35 +08:00
Source0: https://download.gnome.org/sources/vala/0.56/vala-%{version}.tar.xz
2020-06-04 16:45:10 +08:00
2019-12-17 14:45:21 +08:00
BuildRequires: flex bison glib2-devel gobject-introspection-devel
2022-04-19 14:18:13 +08:00
BuildRequires: graphviz-devel libxslt dbus-x11 make
BuildRequires: dbus-x11 chrpath
2020-06-04 16:45:10 +08:00
Requires(pre): %{_sbindir}/alternatives
Requires: vala-devel = %{version}-%{release} gobject-introspection-devel
2020-06-04 16:45:10 +08:00
Requires: %{name} = %{version}-%{release}
Provides: vala(api) = %{api_ver}
2021-06-24 15:19:40 +08:00
Obsoletes: vala-tools < 0.34.0
Conflicts: vala-tools < 0.34.0
Provides: vala-tools = %{version}-%{release}
2023-02-02 14:37:48 +08:00
Provides: valadoc = %{version}-%{release}
Obsoletes: vala-tools < %{version}-%{release}
Conflicts: vala-tools < %{version}-%{release}
2019-12-17 14:45:21 +08:00
%description
2020-06-04 16:45:10 +08:00
Compiler Using the GObject Type System.
%package devel
Summary: Library and and head file for vala compiler
Provides: vala-devel = %{version}-%{release}
Obsoletes: vala-devel < 0.43
2019-12-17 14:45:21 +08:00
%description devel
2020-06-04 16:45:10 +08:00
Library and and head file for vala compiler.
2019-12-17 14:45:21 +08:00
2020-06-04 16:45:10 +08:00
%package help
Summary: Help documents for vala
Requires: %{name} = %{version}-%{release} devhelp
2019-12-17 14:45:21 +08:00
2020-06-04 16:45:10 +08:00
%description help
Help documents for vala.
2019-12-17 14:45:21 +08:00
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure
sed -i 's|/lib /usr/lib|/lib /usr/lib /lib64 /usr/lib64|' libtool
2022-04-19 14:18:13 +08:00
make %{?_smp_mflags}
2019-12-17 14:45:21 +08:00
%install
%make_install
chrpath -d %{buildroot}%{_bindir}/vala
chrpath -d %{buildroot}%{_bindir}/vala-0.56
chrpath -d %{buildroot}%{_bindir}/valac
chrpath -d %{buildroot}%{_bindir}/valac-0.56
chrpath -d %{buildroot}%{_bindir}/valadoc
chrpath -d %{buildroot}%{_bindir}/valadoc-0.56
chrpath -d %{buildroot}%{_bindir}/vapigen
chrpath -d %{buildroot}%{_bindir}/vapigen-0.56
chrpath -d %{buildroot}%{_libdir}/vala-%{api_ver}/*.so
chrpath -d %{buildroot}%{_libdir}/*.so.*
2019-12-17 14:45:21 +08:00
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/%{name}-%{api_ver}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
2022-04-19 14:18:13 +08:00
mv %{buildroot}%{_bindir}/vala-gen-introspect-%{api_ver}{,-`uname -m`}
echo -e '#!/bin/sh\nexec %{_bindir}/vala-gen-introspect-%{api_ver}-`uname -m` "$@"' > \
%{buildroot}%{_bindir}/vala-gen-introspect-%{api_ver}
chmod +x %{buildroot}%{_bindir}/vala-gen-introspect-%{api_ver}
%delete_la_and_a
2019-12-17 14:45:21 +08:00
%check
make check
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
2019-12-17 14:45:21 +08:00
%files
%license COPYING
2020-06-04 16:45:10 +08:00
%{_bindir}/vala
%{_bindir}/vala-%{api_ver}
%{_bindir}/valac
%{_bindir}/valac-%{api_ver}
%{_bindir}/vala-gen-introspect
2022-04-19 14:18:13 +08:00
%{_bindir}/vala-gen-introspect-%{api_ver}*
2020-06-04 16:45:10 +08:00
%{_bindir}/vapigen
%{_bindir}/vapigen-%{api_ver}
2019-12-17 14:45:21 +08:00
%{_libdir}/pkgconfig/vapigen*.pc
2020-06-04 16:45:10 +08:00
%{_libdir}/vala-%{api_ver}/
2019-12-17 14:45:21 +08:00
%{_datadir}/aclocal/vala.m4
%{_datadir}/aclocal/vapigen.m4
%{_datadir}/vala/
2020-06-04 16:45:10 +08:00
%{_datadir}/vala-%{api_ver}/
%{_bindir}/valadoc
%{_bindir}/valadoc-%{api_ver}
%{_libdir}/libvaladoc-%{api_ver}.so.0*
%{_libdir}/valadoc-%{api_ver}/
%{_datadir}/valadoc-%{api_ver}/
%config(noreplace) /etc/ld.so.conf.d/*
2019-12-17 14:45:21 +08:00
%files devel
2020-06-04 16:45:10 +08:00
%license COPYING
%{_libdir}/libvala-%{api_ver}.so.*
%{_includedir}/vala-%{api_ver}
%{_libdir}/libvala-%{api_ver}.so
%{_libdir}/pkgconfig/libvala-%{api_ver}.pc
%{_includedir}/valadoc-%{api_ver}/
%{_libdir}/libvaladoc-%{api_ver}.so
%{_libdir}/pkgconfig/valadoc-%{api_ver}.pc
2019-12-17 14:45:21 +08:00
%files help
2020-06-04 16:45:10 +08:00
%{_mandir}/man1/valac.1*
%{_mandir}/man1/valac-%{api_ver}.1*
%{_mandir}/man1/vala-gen-introspect.1*
%{_mandir}/man1/vala-gen-introspect-%{api_ver}.1*
%{_mandir}/man1/vapigen.1*
%{_mandir}/man1/vapigen-%{api_ver}.1*
%{_mandir}/man1/valadoc-%{api_ver}.1*
2019-12-17 14:45:21 +08:00
%{_mandir}/man1/valadoc.1*
2020-06-04 16:45:10 +08:00
%doc %{_datadir}/devhelp/books/vala-%{api_ver}
2019-12-17 14:45:21 +08:00
%changelog
* Sat Mar 18 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.56.3-3
- fix issue : I6O4ZM
* Mon Mar 13 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.56.3-2
- remove rpath
2023-02-02 14:37:48 +08:00
* Mon Jan 2 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.56.3-1
- Upgrade to 0.56.3
2022-06-08 11:37:35 +08:00
* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.56.1-1
- Upgrade to 0.56.1
2022-04-19 14:18:13 +08:00
* Tue Apr 19 2022 dillon chen <dillon.chen@gmail.com> - 0.56.0-1
- Update to 0.56.0
2021-06-24 15:19:40 +08:00
* Thu Jun 24 2021 Wenlong Ding <wenlong.ding@turbolinux.com.cn> - 0.50.8-3
- Add missing Provides: vala-tools
* Sun May 23 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 0.50.8-2
- Correct package depends
- Delete unnecessary and uncorrect Requires, Provides, Obsoletes, Conflicts
- Update Release to 2
* Wed May 19 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 0.50.8-1
- Upgrade to 0.50.8
- Update api_ver, Version, Release, Source0
2020-06-04 16:45:10 +08:00
* Wed Jun 3 2020 wutao <wutao61@huawei.com> - 0.48.6-2
- Upagrade to 0.48.6-2
2019-12-17 14:45:21 +08:00
* Mon Dec 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.42.2-2
- Package init