Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: ctwm #1039

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/desktops/ctwm/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "ctwm.spec"
}
}
51 changes: 51 additions & 0 deletions anda/desktops/ctwm/ctwm.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Summary: Lightweight window manager with virtual workspaces
Name: ctwm
Version: 4.1.0
Release: 1
URL: https://ctwm.org
BuildRequires: libx11-devel libjpg-devel libxt-devel libxext-devel libxmu-devel libxpm-devel cmake
Source0: https://www.ctwm.org/dist/%{name}-%{version}.tar.gz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the annoying part is, we probably want to download sources directly from upstream (due to xz incident we should have learnt our lesson)

ctwm sources do not use git, they use bazaar (totally incompatible), commits are called revisions

supposedly we can track the version in update.rhai using this file https://bazaar.launchpad.net/~ctwm/ctwm/trunk/annotate/head:/VERSION
Downside is we need to regex the webpage to get the version
and then we need to grab the revision (710.1.2), save it in the spec using rpm.global(), then finally we have the tarball at https://bazaar.launchpad.net/~ctwm/ctwm/trunk/tarball/710.1.2

I might do this later

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do i cannot write rhai

as for other changes i'll do my best and let you know if i need help :3

Source1: %{name}.desktop
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't exist in the same directory as the spec

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably forgot to copy this from RPMSphere

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cannot find it in rpmsphere sources ww

License: MIT
Requires: m4
# Derived from RPMSphere's packaging

%description
CTWM is a window manager based on TWM (with virtual workspaces added.)

%prep
%setup -q

%build
%cmake
%cmake_build

%install
%cmake_install
%{__install} -Dm644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop

%files
%doc README.md CHANGES.md
nothingneko marked this conversation as resolved.
Show resolved Hide resolved
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_datadir}/xsessions/%{name}.desktop
%{_datadir}/ctwm
%{_datadir}/doc/ctwm/ctwm.1.html
%{_datadir}/examples/ctwm/system.ctwmrc

%changelog
* Wed Apr 3 2024 Jaiden Riordan <[email protected]> - 4.1.0
- Rewrite for Terra, Thanks RPMSphere
* Tue Dec 24 2019 Wei-Lun Chao <[email protected]> - 4.0.3
- Rebuilt for Fedora
* Sat Apr 9 2011 Agnelo de la Crotche <[email protected]>
- package for openSUSE 11.3/11.4
* Thu Feb 16 2006 Richard Levitte <[email protected]>
- Release ctwm 3.8a.
* Wed May 4 2005 Rudolph T Maceyko <[email protected]>
- Tweaks. Added all .ctwmrc files as well as sound and VMS docs.
* Wed May 4 2005 Richard Levitte <[email protected]>
- Changed some directory specifications to RedHat-ish standards.
* Tue May 3 2005 Richard Levitte <[email protected]>
- Received the original from Johan Vromans. Adjusted it to become
an official .spec file.
Loading