mipgraph.spec 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Name: miptgraph
  2. Version: %{getenv:VERSION}
  3. Release: %{getenv:RELEASE}%{?dist}
  4. Summary: C++ Library for Graph Representation and Algorithms
  5. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  6. Prefix:/usr
  7. License: AGPLv3.0
  8. URL: https://github.com/gml4gtk/miptgraph/tree/main/miptgraph
  9. Source0: https://github.com/miptgraph/archive/refs/tags/v%{version}.%{release}.tar.gz
  10. #Requires: bash
  11. BuildArch: noarch
  12. %define _topdir %(echo $PWD)/
  13. %description
  14. C++ Library for Graph Representation, Manipulation, Partitioning and Algorithms
  15. %precd rm
  16. echo " |------------------------------------------------| "
  17. echo " |------------ miptgraph Library -------------| "
  18. echo " |------------------------------------------------| "
  19. %prep
  20. cd %{_topdir}
  21. #%{_topdir}/../targzip.sh
  22. ../targzip.sh
  23. %build
  24. %install
  25. rm -rf %{buildroot}
  26. mkdir -p %{buildroot}%{prefix}/include
  27. cp -rp %{_topdir}/../../include/* %{buildroot}%{prefix}/include/
  28. echo " |------------------------------------------------| "
  29. echo " |-------- Installation Completed ------------| "
  30. echo " |------------------------------------------------| "
  31. %preun
  32. echo " |------------------------------------------------| "
  33. echo " |------------ miptgraph Library -------------| "
  34. echo " |------------------------------------------------| "
  35. %postun
  36. rm -rf /usr/include/mipgraph.h /usr/include/miptgraphconfig.h
  37. echo " |------------------------------------------------| "
  38. echo " |------- Uninstallation Completed -----------| "
  39. echo " |------------------------------------------------| "
  40. %clean
  41. rm -rf %{buildroot}
  42. %files
  43. %defattr(-,root,root)
  44. %{prefix}/include
  45. %changelog
  46. * Mon Jul 26 2021 gml4gtk <mooigraph@gmail.com> - %{version}-%{release}
  47. - First RPM package